Since solar panels require sunlight to generate electricity, the answer is no, solar panels do not work at night. Most of the confusion about solar panels working at night is related to solar storage and using backup power supply during the night hours.
Solar panels won’t operate at maximum capacity during rainy conditions or night time, for the main reason is that will not be enough sunlight to be absorbed and used in the production of energy, your panels work all day, even though sunset to ensure you have enough electricity to power your home or office the whole day, but the photovoltaic cells in your solar needs sunlight to generate power for your homes and office, so as the sun down , it’s now time to take advantage of the excess energy the system has stored , which is accessible through the solar battery.
Solar battery stored at night allows you to access electricity at night and when solar panel is not effective and efficient such as the rainy seasons or less sunshine and during night time, with the help of solar battery inverter system, dearly beloved you are completely assured of power anytime. So in short the solar panels generates power for you during the day and at night the battery generate power for you at night.