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
Wayne Rooney has said his community service in a garden centre after admitting drink driving is "refreshing" and "relaxing".
A "culture change" is needed to ensure building safety is prioritised over costs, a probe ordered after the Grenfell Tower fire has found.
A winter wonderland event in Northern Ireland has been cancelled after organisers apologised for falling short of expectations.