The FAO plays a pivotal role in ensuring food safety by setting international standards and guidelines for food production, processing, and distribution. The organization works with the Codex Alimentarius Commission, which develops harmonized international food standards, guidelines, and codes of practice to protect consumer health and ensure fair trade practices in the food trade.