Solar panels are used to collect energy from the sun’s rays (solar energy).