The UK has signed a security pact with Qatar to share classified intelligence and deepen ties between the two countries’ security agencies in the face of a burgeoning international threat from jihadism and cyber warfare.

The security memorandum, negotiations over which have been in train since March, is one of the main accomplishments of diplomatic talks between the new Emir of Qatar, Sheikh Tamim bin Hamad al-Thani, and Prime Minister David Cameron, who met in London last week.

A main plank of the arrangement will be enhanced co-operation between the Qataris and Britain on digital defence, involving close work with the UK’s electronic eavesdropping agency, GCHQ, officials familiar with the document said. […]