Ficus carica is a large evergreen tree found in Iran. In this research, the extraction of anthocyanins from fig fruits was optimized using different SO2 concentrations (100, 300, 600, 900, and 1200ppm), temperatures (10, 20, 40, 60, and 75 °C), and solvent to solid ratios (10, 20, 40, 60, and 75 L/kg). The extraction of anthocyanins changed with the concentration of SO2, S/S, and temperature. Maximum yields of anthocyanins were obtained at an SO2 concentration of 1000-1200ppm and 75L per kg of solvent of frozen fig fruits samples. It is recommended that temperatures of 35 - 40°C be used for the extraction of anthocyanins as higher temperatures will degrade these compounds.