A capacitor is a device that stores electric charge in an electric field. It is a passive electronic component with two terminals.