How does sunlight work?

How does sunlight work?
Making towels and sheets smell nice
making me happy