Once the Sun has set, power generation is over. There is no solar energy at night. However, solar panels can produce electricity even with indirect morning and evening beams. So, it’s recommended to have them constantly connected to the system so they can generate as much power as possible during the daytime.