According to the sunscreen fabric and the preparation method thereof, a basic fabric is soaked in different agents to be treated, the sunscreen fabric is prepared, modified nylon serves as a base material of the sunscreen fabric, modified nylon molecules are of a branched structure, a molecular chain contains a hydroxyl
benzophenone structure, keto groups and hydroxyl groups of the hydroxyl
benzophenone structure can form internal
hydrogen bonds, a chelate ring is formed, and therefore the sunscreen fabric is formed. After
ultraviolet rays are absorbed,
hydrogen bonds are broken, chelate rings are opened, energy of the
ultraviolet rays is converted into
heat energy to be released, the sunscreen fabric contains a framework structure of
imidazole zinc, and the framework structure has a high specific surface area and a porous structure, so that the
ultraviolet rays can be captured and scattered, the
penetration depth is reduced, and the effect of shielding the ultraviolet rays is achieved; meanwhile, the surface of the fabric contains the organic
silicon layer and the
benzene ring and long-chain
alkyl group hydrophobic layer, so that
zinc imidazole can be prevented from falling off due to repeated washing, and the sunscreen service life of the fabric is further prolonged.