An EU representative is a person or organization based in the EU who represents the GDPR compliance interests of a business located outside of the EU. The EU representative acts as a liaison between data subjects, supervisory authorities, and the business they represent. The name and contact details of the EU representative is typically disclosed in a Privacy Policy.
The appointment of an EU representative is a mandatory function for businesses that operate in the EU/EEA but aren’t located there. Specifically, the EU representative is responsible for:

Handling inquiries about data processing from DPAs or data subjects.

Maintaining records of a company's processing activities and receiving legal documents as a company's authorized agent.

Providing supervisory authorities with access to data processing records.

Participating in enforcement proceedings in case of a company's non-compliance with the regulation.