Capacitors are devices that store charges and can be used as a source of electrical energy. They are made up of two dielectric materials separated by a small gap.