EU Data Retention Directive 2006/24/EC

Or as implemented in the UK by

The Data Retention (EC Directive) Regulations 2009 no.859