Provided is a sun protection composition including a UV absorber and a plurality of porous titanium dioxide microspheres. The UV absorber absorbs light of at least one of UVA radiation and UVB radiation. The particle size of the porous titanium dioxide microspheres is 100 nm to 300 nm, and the porous titanium dioxide microspheres can scatter light in a wavelength range between 200 nm and 400 nm. A cosmetic and a fabric containing the sun protection composition can also scatter light in a wavelength range between 200 nm and 400 nm, such that the UV protection capability of the cosmetic and the fabric is enhanced.