A method for producing microcapsules with a sun protection effect includes mixing tetraethoxysilane (TEOS), ethanol, and water and uniformly vibrating the mixture of TEOS, ethanol, and water. The TEOS, ethanol, and water have an appropriate ratio therebetween. Nitric acid is used to adjust the mixture of TEOS, ethanol, and water to have an appropriate pH value. The mixture is placed still to hydrolyze the mixture. The hydrolyzed mixture is heated and stirred to obtain a TEOS sol. Then, the TEOS sol, Span 80, and mineral oil are mixed in an approximate ratio to obtain a microemulsified TEOS gel. The microemulsified TEOS gel is centrifuged. The upper oil phase is removed. The lower water phase and powders are sucked, filtered, and cleaned. The powders are recycled and baked.