Batteries consist of one or more electrochemical cells that are used to convert chemical energy into electrical energy. They are used to store electricity. This is a very useful feature to use in combination with solar panels in a location without a mains connection. For example, electricity can be stored in the batteries during the day for use during the night.