Solar panels do not generate power at night. Once the sun goes down, your home or business will start to draw power from the main grid as usual.
Solar panels still work on a cloudy day; however they will not generate as much electricity as when the weather is clear and sunny.