In this research, MgF2 and SiO2 thin films were prepared by the magnetron sputtering method on glass and ITO substrates. The crystal structure, morphology, and antireflection performance of the coatings were characterized using X-ray diffraction (XRD), field emission scanning electron microscopy (FESEM), and ultraviolet spectrophotometry (UV-vis) techniques, respectively. Furthermore, by utilizing both experimental characterization and optical film design tools, the best experimental parameters for every coating were identified. FESEM images confirmed proper growth of the layers on the substrates. EDAX analysis revealed that the manufactured layer consisted of Magnesium fluoride and silica. The study of optical properties demonstrated that the average transmission in the 400-1000 nanometer range exceeded 99%, indicating good agreement with theoretical results. Furthermore, the use of ITO as the substrate reduced the bandgap.