how do you get energy from sunlight

The sun shines on leaves of plants that produce oxygen for us to breathe and food for us to eat. Those are two ways.