In recent years, groundwater has been affected by anthropogenic pollutants such as nitrates. The latter has the potential to produce nitrosamines and can therefore cause blue baby syndrome as well as several types of cancer, including that of the digestive system. Moreover, nitrates lead to eutrophication in water bodies such as rivers and lakes. These adverse effects make it necessary to remove nitrates from water. This work consisted of the denitrification technique study by electrocoagulation (EC) of nitrate-rich groundwater for the production of drinking water. Tests were carried out on nitrate-based synthetic water prepared in the laboratory. The EC test was realized in a batch reactor, comprising two aluminum electrodes, powered by different DC voltages. The operating parameters were the applied voltage between the electrodes (5–30 V), a pH fixed at 7, an initial nitrate concentration of 100 mg/L. The results showed that the removal efficiency depended on the applied voltage and the immersed surface of the electrodes. This removal efficiency was 94.41% after 150 min under the following conditions: pH = 7, electrical voltage = 30 V, immersed surface = 33.75 cm2. In addition, this study concluded that the nitrate removal by electrocoagulation could be achieved by adsorption on Al(OH)3 and/or reduction to nitrites or to ammonium. A significant quantity of by-products, ammonium and nitrite, formed during the process. However the addition of Cl− allowed decrease in nitrite and ammonium formation. The current density monitoring determined the maximum current intensity that could be kept constant to improve removal efficiency and reduce treatment time.