What are the six lawful bases under Article 6(1)?
Article 6(1) GDPR sets out six exhaustive conditions for lawful processing: consent under point (a), contractual necessity under point (b), legal obligation under point (c), vital interests under point (d), public interest task under point (e), and legitimate interests under point (f). If none of these six conditions applies, the processing is unlawful under Article 5(1)(a) and constitutes a breach subject to the higher fine tier under Article 83(5)(a).
This builds on our core guide to the seven GDPR principles under Article 5. While Article 5(1)(a) establishes the principle of lawfulness, Article 6 provides the concrete statutory mechanism to satisfy it. The six bases operate as follows:
- Consent (Art. 6(1)(a)): The data subject gives clear, affirmative consent for one or more specific purposes, subject to the strict validity conditions in Article 7 GDPR.
- Contract (Art. 6(1)(b)): Processing is necessary for the performance of a contract to which the data subject is party or to take pre-contractual steps at their request.
- Legal obligation (Art. 6(1)(c)): Processing is necessary to comply with a statutory obligation under Union or Member State law to which the controller is subject.
- Vital interests (Art. 6(1)(d)): Processing is necessary to protect an interest which is essential for the life of the data subject or that of another natural person (Recital 46), such as emergency medical triage where consent cannot be obtained.
- Public task (Art. 6(1)(e)): Processing is necessary for the performance of a task carried out in the public interest or in the exercise of official authority vested in the controller.
- Legitimate interests (Art. 6(1)(f)): Processing is necessary for legitimate commercial or organisational interests, balanced against the rights and freedoms of the individual, as explored in our guide to legitimate interests under GDPR.
How do the six lawful bases compare in practice?
Each lawful basis pairs a distinct necessity requirement with specific operational limits, differing availability for public bodies, and direct consequences for data subject rights under Articles 17, 20, and 21. The decision matrix below summarizes these statutory criteria and their direct consequences under Regulation (EU) 2016/679:
| Legal basis | Statutory trigger | Available to public bodies? | Rights unlocked or affected | Core exam trap |
|---|---|---|---|---|
| Consent Art. 6(1)(a) | Specific, informed, unambiguous, freely given | Yes, but difficult due to power imbalance | Right to withdraw anytime; Portability (Art. 20); Erasure (Art. 17(1)(b)) | Cannot swap to contract or legitimate interest after withdrawal (EDPB Guidelines 05/2020 para 123) |
| Contract Art. 6(1)(b) | Objectively indispensable to perform contract | Yes, when entering civil contracts | Portability (Art. 20); No general right to object under Art. 21 | Commercial terms or convenience do not establish contractual necessity (Case C-252/21) |
| Legal obligation Art. 6(1)(c) | Mandated by clear Union or Member State law | Yes, frequent statutory ground | No right to portability; No right to object under Art. 21; Restricted erasure | Contractual duties between private parties are not statutory legal obligations |
| Vital interests Art. 6(1)(d) | Essential for the life of natural persons (Recital 46) | Yes, in life-threatening situations | No right to portability; No general right to object under Art. 21 | Only applies to essential life interests, not routine health administration or economic security |
| Public task Art. 6(1)(e) | Task in public interest or official authority | Yes, primary ground for public bodies | Right to object (Art. 21(1)); No right to portability under Art. 20 | Requires a clear basis in Union or Member State law pursuant to Article 6(3) |
| Legitimate interests Art. 6(1)(f) | Controller or 3rd party interest passing 3-part test | No, barred for public tasks by Art. 6(1) subpara 2 | Right to object (Art. 21(1)); Absolute objection to direct marketing (Art. 21(2)) | Public authorities cannot use 6(1)(f) in the performance of their tasks; commercial interests can be overridden |
What does CJEU Case C-252/21 require for contractual necessity?
In Case C-252/21 (Meta Platforms v Bundeskartellamt, 4 July 2023), the Court of Justice of the European Union held that contractual necessity under Article 6(1)(b) requires processing to be objectively indispensable for a purpose that is integral to the contractual obligation intended for the data subject. The Court confirmed that the controller must demonstrate how the main subject matter of the contract cannot be achieved without the processing in question.
Crucially, paragraph 99 of the judgment established that the fact that processing may be referred to in the contract or may be merely useful for the performance of the contract is, in itself, irrelevant. For DPO examinations and operational compliance, remember two strict boundaries:
- No bundling of unrelated services: A platform provider cannot justify behavioural profiling, tracking across third-party websites, or personalized advertising under Article 6(1)(b) simply by drafting terms of service that define advertising as part of the service.
- Indispensability test: If viable, less intrusive alternatives exist to deliver the core service, the processing is not objectively indispensable under Article 6(1)(b).
Why are public authorities restricted under Article 6(1)(f)?
Point (f) of the first subparagraph of Article 6(1) explicitly bars public authorities from relying on legitimate interests for processing carried out in the performance of their tasks. European lawmakers enacted this restriction because public authorities must operate within defined statutory mandates rather than pursuing private or discretionary organisational interests.
Under Article 6(3), the legal ground for processing under Article 6(1)(c) and Article 6(1)(e) must be laid down by Union law or Member State law to which the controller is subject. Where a public body acts in its official public capacity, it must rely on Article 6(1)(e) or Article 6(1)(c). A narrow exception applies when a public body acts purely in a private commercial capacity outside its public mission (such as operating an optional commercial facility), but core administrative tasks can never lean on legitimate interests.
How does the chosen legal basis determine data subject rights?
The lawful basis selected under Article 6(1) directly dictates which individual rights data subjects can exercise, creating distinct legal workflows for erasure, objection, and data portability. Controllers cannot treat all rights as universally applicable across every database.
The three most critical statutory distinctions tested on exams are:
- Right to data portability (Article 20): Under Article 20(1)(a) and (b), portability is confined strictly to processing based on consent (Article 6(1)(a) or Article 9(2)(a)) or contract (Article 6(1)(b)), carried out by automated means. It never applies to processing based on legal obligation, public task, or legitimate interests.
- Right to object (Article 21): Under Article 21(1), individuals have the right to object only to processing founded on Article 6(1)(e) public task or Article 6(1)(f) legitimate interests. However, if processing concerns direct marketing under Article 21(2), the right to object is absolute.
- Right to erasure (Article 17): If processing is based on consent, withdrawal triggers erasure under Article 17(1)(b) unless another legal ground applies. If based on legitimate interests, erasure under Article 17(1)(c) depends on whether the controller can demonstrate overriding legitimate grounds.
How does the Article 6(4) compatibility test work?
Article 6(4) GDPR governs purpose limitation under Article 5(1)(b) by providing a statutory framework to determine whether processing for a purpose other than that for which data was initially collected is compatible with the initial purpose. As affirmed in Recital 50 GDPR, where further processing is compatible, no legal basis separate from that which allowed the collection of personal data is required.
When assessing compatibility (unless based on the data subject's consent or on Union or Member State law safeguarding objectives in Article 23(1)), the controller must evaluate:
- The link between the original purpose and the intended further processing purpose;
- The context of collection, particularly the relationship between the data subject and controller;
- The nature of the personal data, specifically whether special category data under Article 9 GDPR or criminal data under Article 10 are involved;
- The potential consequences of the further processing for data subjects; and
- The presence of appropriate technical safeguards, such as encryption or pseudonymisation.
Frequently asked questions
These answers address Article 6 examination scenarios and practical compliance questions on the basis of the Regulation and CJEU case law.
Is there a hierarchy among the six Article 6(1) lawful bases?
No. Regulation (EU) 2016/679 establishes no hierarchy between the six lawful grounds in Article 6(1); all six stand on equal legal footing, and controllers must choose the basis that best reflects the reality of the processing.
Can a controller switch from consent to another legal basis if consent is withdrawn?
No. Under EDPB Guidelines 05/2020 (paragraph 123) and Article 5(1)(a) transparency and fairness requirements, a controller cannot swap from consent to other lawful bases once consent is withdrawn.
Can public authorities rely on legitimate interests under Article 6(1)(f)?
No. Point (f) of the first subparagraph of Article 6(1) explicitly states that it shall not apply to processing carried out by public authorities in the performance of their tasks.
Does contractual necessity under Article 6(1)(b) cover commercial convenience?
No. The CJEU ruled in Case C-252/21 (Meta Platforms) that processing under Article 6(1)(b) must be objectively indispensable for performing the core contractual obligation intended for the data subject.
Which Article 6 legal bases unlock the right to data portability under Article 20?
Under Article 20(1)(a)-(b), data portability applies exclusively when processing is based on consent pursuant to Article 6(1)(a) (or Article 9(2)(a)) or on contract pursuant to Article 6(1)(b), and carried out by automated means.
When does the Article 6(4) compatibility test apply?
Article 6(4) applies when a controller intends to process personal data for a secondary purpose other than the initial collection purpose, provided that secondary processing is not based on consent or Union/Member State law.
Master GDPR certification questions
Practise realistic Article 6 exam questions, necessity edge cases, and lawful basis matrices before your DPO exam.
Start free Try 30 questions free — no time limit, no credit card.What is this guide based on?
This guide is based on the official English text of Regulation (EU) 2016/679, for contractual necessity on the CJEU judgment in Case C-252/21 and, for switching the lawful basis after consent, on EDPB Guidelines 05/2020 on consent (paragraph 123). GDPR Exam Trainer is responsible for this guide. It is written for DPO candidates and is not legal advice.