Eastern Libyan authorities have banned citizens of Sudan, Eritrea, Ethiopia and Somalia from entering territory under their control, a move that could reshape migration flows through one of Africa’s most important transit routes to Europe.

The decision was announced on Tuesday by the Benghazi-based administration of Prime Minister Osama Hamad, which governs eastern Libya and is aligned with military commander Khalifa Haftar.

An eastern government source told Reuters the measure was aimed at “reorganizing foreign nationals’ entry to Libya.”

The restrictions do not apply to accredited diplomats, consular staff and their families. Workers in the education, medical and allied health sectors are also exempt provided they obtain the required approvals and valid employment contracts.

Why these four countries matter