The U.K. government says a contentious internet surveillance bill that creates databases of Britons' online activity has become law.
House of Commons Speaker John Bercow told lawmakers Tuesday that the Investigatory Powers Bill had received formal royal assent. It was passed by Parliament earlier this month.
Civil liberties groups have condemned the bill, which requires telecoms companies to keep for a year records of the websites users visited and the apps and messaging services they used, though not the individual pages they looked at or the messages they sent.
The Home Office says the law gives authorities the powers they need to disrupt terrorist attacks in a digital age.
It says some provisions in the new law "will require extensive testing and will not be in place for some time."