The invention discloses a preparation method and an application of a biomass ultraviolet absorbent. The biomass ultraviolet absorbent comprises, by weight, 3-6 parts of biomass active extracting solution, 1.5-3 parts of dry biomass particles, 0.75-1.5 parts of natural mineral particles, 1-2 parts of biomass film-forming agents and 80-160 parts of solvents. The biomass ultraviolet absorbent is prepared from natural bio-based or raw mineral materials, achieves excellent anti-ultraviolet effects by the aid of synergistic effects of wet invasive plant active extracting solution, the dry biomass particles and the natural mineral particles, is environmentally friendly, degradable and non-irritating to organisms, can be widely applied to textiles, paper products, plastics, cosmetics and the like,and further has a certain far infrared release function.