UK GDPR Article 28 requires a written contract between a data controller and any data processor. This is mandatory — not optional. Common examples: cloud hosting providers, payroll providers, marketing agencies, and IT support companies all act as processors for their clients.
Legal reference: UK GDPR Article 28; Data Protection Act 2018; ICO guidance