A capacitor's main purpose is to store charge. Electrons build up on one plate of a capacitor when it is linked to a power source, while an opposite but equal charge builds up on the other plate.