When a capacitor is connected to a battery, the potential difference across the capacitor creates an electric current.