Egypt will train Libyan forces to fight terrorism and help secure a shared border, the prime ministers of the two states announced in Cairo on Wednesday, stepping up efforts against Islamist insurgents in both countries.

Egyptian President Abdel Fattah al-Sisi has expressed concerns over militants who have capitalized on the chaos in post-Gaddafi Libya to set up operations there and sneak across the border into Egypt.

They have forged ties with Egypt’s Ansar Bayt al-Maqdis, the Sinai-based militant group that has stepped up attacks on soldiers and policemen since Sisi as army chief removed the Muslim Brotherhood from power last year. […]