The Indigo Blue dye is widely used in the textile industry, specifically in jeans dyeing, the effluents of which, rich in organic pollutants with recalcitrant characteristics, end up causing several environmental impacts, requiring efficient treatments. Several pieces of research have been conducted in search of effective treatment methods, among which is electrocoagulation. This treatment consists of an electrochemical process that generates its own coagulant by applying electric current on metallic electrodes, bypassing the use of other chemical products. The objective of this work was to evaluate the potential use of iron slag in the electrocoagulation of a synthetic effluent containing commercial dye Indigo Blue and the effluent from a textile factory. The quantified parameters were color, turbidity, pH, electrical conductivity, sludge generation, phenol removal, chemical oxygen demand (COD), and total organic carbon (TOC). The electrocoagulation treatment presented a good efficiency in removing the analyzed parameters, obtaining average removal in the synthetic effluent of 85 % of color and 100 % of phenol after 25 min of electrolysis. For the effluent from the textile factory, average reductions of 80 % of color, 91 % of turbidity, 100 % of phenol, 55 % of COD, and 73 % of TOC were measured after 60 min of electrolysis. The results obtained demonstrate the potential of using iron slag as an electrode in the electrocoagulation process in order to reuse industrial waste and reduce costs in the treatment and disposal of solid waste.