The importance of the sun is paramount, since it is the main energy source. Plants requires light to carry out photosynthesis. During this process the plants are nourished.
In addition, in this process they release energy to the atmosphere which is necessary for the rest of the living beings.
If sunlight decrease it would affect plants and so other organisms.