Prime Minister David Cameron said the government's security services sometimes rely on accessing the confidential data of individuals in order to identify and disrupt terrorist plots.
Speaking at a joint press conference with Liberal Democrat leader Nick Clegg, Mr Cameron said the recent legal judgement on privacy rights by the European Court of Justice has left some legal ambiguity as to whether internet companies are obliged to hand over data, and this needed to be cleared up.
More top news
It'll become increasing cloudy tonight, with outbreaks of rain in the northwest
Six months on from the referendum, Political Editor Robert Peston takes a road trip to find out what people feel about Brexit now.
Donald Trump has been criticised for appointing a man who once sued the Environmental Protection Agency to be its new boss.