Legislation – Data Protection Act 2018
Changes to legislation:
Data Protection Act 2018, Section 170 is up to date with all changes known to be in force on or before 08 April 2026. There are changes that may be brought into force at a future date. Changes that have been made appear in the content and are referenced with annotations.![]()
Changes to Legislation
Revised legislation carried on this site may not be fully up to date. Changes and effects are recorded by our editorial team in lists which can be found in the ‘Changes to Legislation’ area. Where those effects have yet to be applied to the text of the legislation by the editorial team they are also listed alongside the legislation in the affected provisions. Use the ‘more’ link to open the changes and effects relevant to the provision you are viewing.
Changes and effects yet to be applied to Section 170:
- s. 26(2)(f)(ai) omitted by 2025 c. 18 Sch. 10 para. 9
- s. 44(1)(da) inserted by 2025 c. 18 Sch. 10 para. 10(2)(a)
- s. 44(5)(ca) inserted by 2025 c. 18 Sch. 10 para. 10(3)(a)
- s. 45(2)(ea) inserted by 2025 c. 18 Sch. 10 para. 11(2)(a)
- s. 45(5)(ca) inserted by 2025 c. 18 Sch. 10 para. 11(3)(a)
- s. 45A(2)(ca) inserted by 2025 c. 18 Sch. 10 para. 12
- s. 48(1)(b)(iia) inserted by 2025 c. 18 Sch. 10 para. 13(2)(a)
- s. 48(4)(ba) inserted by 2025 c. 18 Sch. 10 para. 13(3)(a)
- s. 149(5A) inserted by 2025 c. 18 Sch. 10 para. 16(3)
- s. 157(4A) inserted by 2025 c. 18 Sch. 10 para. 18
- s. 187(2)(za) inserted by 2025 c. 18 Sch. 10 para. 21(3)(a)
- Sch. 3 para. 8(1)(y) added by 2022 c. 18 (N.I.) Sch. 3 para. 78(3)
Changes and effects yet to be applied to the whole Act associated Parts and Chapters:
Whole provisions yet to be inserted into this Act (including any effects on those provisions):
- s. 26(2)(f)(ai) omitted by 2025 c. 18 Sch. 10 para. 9
- s. 44(1)(da) inserted by 2025 c. 18 Sch. 10 para. 10(2)(a)
- s. 44(5)(ca) inserted by 2025 c. 18 Sch. 10 para. 10(3)(a)
- s. 45(2)(ea) inserted by 2025 c. 18 Sch. 10 para. 11(2)(a)
- s. 45(5)(ca) inserted by 2025 c. 18 Sch. 10 para. 11(3)(a)
- s. 45A(2)(ca) inserted by 2025 c. 18 Sch. 10 para. 12
- s. 48(1)(b)(iia) inserted by 2025 c. 18 Sch. 10 para. 13(2)(a)
- s. 48(4)(ba) inserted by 2025 c. 18 Sch. 10 para. 13(3)(a)
- s. 149(5A) inserted by 2025 c. 18 Sch. 10 para. 16(3)
- s. 157(4A) inserted by 2025 c. 18 Sch. 10 para. 18
- s. 187(2)(za) inserted by 2025 c. 18 Sch. 10 para. 21(3)(a)
- Sch. 3 para. 8(1)(y) added by 2022 c. 18 (N.I.) Sch. 3 para. 78(3)
PART 6Enforcement
Offences relating to personal data
170Unlawful obtaining etc of personal data
(1)
It is an offence for a person knowingly or recklessly—
(a)
to obtain or disclose personal data without the consent of the controller,
(b)
to procure the disclosure of personal data to another person without the consent of the controller, or
(c)
after obtaining personal data, to retain it without the consent of the person who was the controller in relation to the personal data when it was obtained.
(2)
It is a defence for a person charged with an offence under subsection (1) to prove that the obtaining, disclosing, procuring or retaining—
(a)
was necessary for the purposes of preventing F1, investigating or detecting crime,
(b)
was required or authorised by an enactment, by a rule of law or by the order of a court or tribunal, or
(c)
in the particular circumstances, was justified as being in the public interest.
(3)
It is also a defence for a person charged with an offence under subsection (1) to prove that—
(a)
the person acted in the reasonable belief that the person had a legal right to do the obtaining, disclosing, procuring or retaining,
(b)
the person acted in the reasonable belief that the person would have had the consent of the controller if the controller had known about the obtaining, disclosing, procuring or retaining and the circumstances of it, or
(c)
the person acted—
(i)
for the special purposes,
(ii)
with a view to the publication by a person of any journalistic, academic, artistic or literary material, and
(iii)
in the reasonable belief that in the particular circumstances the obtaining, disclosing, procuring or retaining was justified as being in the public interest.
(4)
It is an offence for a person to sell personal data if the person obtained the data in circumstances in which an offence under subsection (1) was committed.
(5)
It is an offence for a person to offer to sell personal data if the person—
(a)
has obtained the data in circumstances in which an offence under subsection (1) was committed, or
(b)
subsequently obtains the data in such circumstances.
(6)
For the purposes of subsection (5), an advertisement indicating that personal data is or may be for sale is an offer to sell the data.
(7)
In this section—
(a)
references to the consent of a controller do not include the consent of a person who is a controller by virtue of Article 28(10) of the F2UK GDPR or section 59(8) or 105(3) of this Act (processor to be treated as controller in certain circumstances);
(b)
where there is more than one controller, such references are references to the consent of one or more of them.