During the regime of Omar al-Bashir, the legal system in Sudan was based on Islamic Sharia law. The 2005 Naivasha Agreement, ending the civil war between north and south Sudan, established some protections for non-Muslims in Khartoum. Sudan's application of Sharia law is geographically inconsistent.