Solar cells are used to trap sunlight energy (light energy) and convert it to electric energy for domestic and other purposes.