A critical global problem is the excessive release of textile effluent that contains the organic compound Methylene Blue (MB) dye into the environment. It harms the environment and living things due to its persistence and toxicity. For instance, it has an impact on birth weight and prenatal neurodevelopment. By now, photocatalytic degradation is a rapidly developing, effective, and energy-saving method for eliminating organic pollutants from the aquatic environment. Using a wet chemical procedure (the sol-gel technique), Calcium iron oxide (CaFe2O4) was synthesized. Some characterization findings show that the CaFe2O4 Powder X-ray diffraction (XRD) pattern is well suited to the orthorhombic structure. Thermogravimetric (TG) analysis research revealed that at around 700°C, the overall weight losses for high-temperature calcined samples started to decline steadily. The CaFe2O4 powder samples calcined at 700°C show more substantial typical band gaps of 2 eV for their UV-vis absorption characteristics. The CaFe2O4 sample that has been developed exhibits remarkable photocatalytic capability. The photocatalytic activity was measured by how quickly MB broke down when exposed to visible light. Investigated were the effects of the photocatalyst's calcination temperatures and starting concentration. The acquired experimental results showed that the synthesized CaFe2O4 photocatalyst could use visible light irradiation to degrade more than 50% of the dye in an aqueous solution.