The agency's role in chemical safety involves evaluating the safety of chemicals, prioritizing them for further study, and recommending restrictions or bans on hazardous substances. ECHA's scientific committees provide expert advice on the health and environmental risks of chemicals, aiding in the prevention of diseases associated with chemical exposure.