How do solar panels work at night?

Solar panels do not produce electricity at night. You may be able to charge batteries during the day that you can use at night.