Rooftop solar panels are devices installed on building roofs to capture sunlight and convert it into electricity, providing a renewable and eco-friendly energy source for homes and businesses.