Most solar fairy lights come with a small solar panel on the end of the string. This panel charges a battery during the day, and the lights run off of the battery at night. If you don't have enough sun during the day to charge the battery, you can also use a USB cord to charge it from your computer or any other USB power source.