Its function is to store the electrical energy and give this energy again to the circuit when necessary. In other words, it charges and discharges the electric charge stored in it. Besides this, the functions of a capacitor are as follows: It blocks the flow of DC and permits the flow of AC.