Blocking diodes are used to stop the backward flow of power from the battery to solar panels. During night time the solar panels will not generate power but the battery is still connected to the panels. The power in the battery tries to flow towards the solar panels; the blocking diodes stops the flow of power from the battery to the solar panels.