The Leyden jar is an early form of electrical capacitor that stores static electricity, invented in the 18th century. It consists of a glass jar lined with metal foil on the inside and outside, which allows for the accumulation and storage of electrical charge. This device played a crucial role in advancing the understanding of electricity and its properties during a time when the science of electricity was just beginning to take shape.