EU-wide · Article 6 GDPR & CJEU Case C-252/21

The 6 Lawful Bases for Processing Under GDPR: Article 6 Explained

Primary-source study guide grounded in Regulation (EU) 2016/679 and CJEU case law · Last updated 11/2026

Under Article 6(1) GDPR, personal data processing is lawful only if at least one of six exhaustive statutory conditions applies: consent, contract, legal obligation, vital interests, public task, or legitimate interests. Choosing the correct ground determines which data subject rights apply, and controllers cannot swap legal grounds retroactively once processing begins.

Key facts at a glance

Article 6(1) provides an exhaustive catalogue of lawful bases, with no legal hierarchy between them, but distinct necessity conditions and procedural constraints.

Exhaustive list
Six grounds under Article 6(1)(a) through (f); no unlisted grounds exist
No hierarchy
All six bases stand on equal legal footing; consent is not superior to contract or legal obligation
Public authorities
Barred from relying on Article 6(1)(f) legitimate interests in the performance of their statutory tasks
Contractual necessity
CJEU Case C-252/21 requires processing to be objectively indispensable for the core contractual obligation
Rights dependency
Data portability (Art. 20) only applies to consent and contract; Right to object (Art. 21) only applies to public task and legitimate interests
Fine exposure
Violations fall under Article 83(5)(a) with maximum fines up to €20,000,000 or, in the case of an undertaking, up to 4% of the total worldwide annual turnover of the preceding financial year, whichever is higher

On this page

  1. What are the six lawful bases under Article 6(1)?
  2. How do the six lawful bases compare in practice?
  3. What does CJEU Case C-252/21 require for contractual necessity?
  4. Why are public authorities restricted under Article 6(1)(f)?
  5. How does the chosen legal basis determine data subject rights?
  6. How does the Article 6(4) compatibility test work?
  7. Frequently asked questions
  8. What is this guide based on?

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:

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:

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:

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:

  1. The link between the original purpose and the intended further processing purpose;
  2. The context of collection, particularly the relationship between the data subject and controller;
  3. The nature of the personal data, specifically whether special category data under Article 9 GDPR or criminal data under Article 10 are involved;
  4. The potential consequences of the further processing for data subjects; and
  5. 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.

Primary sources and official guidance

Binding legal principles derive from the official English EUR-Lex text of Regulation (EU) 2016/679 and Court of Justice of the European Union case law.

This guide summarizes Article 6 GDPR and CJEU jurisprudence for educational and exam preparation purposes. It does not constitute formal legal advice. For binding determinations, consult the official text on EUR-Lex or a qualified legal professional.