Egypt's President Abdel-Fattah al-Sisi on Thursday ratified a bill that could immunize senior military officers from future prosecution related to violence after the 2013 military overthrow of an elected but divisive Islamist president.The law, published in the official gazette on Thursday, grants senior military officers selected by al-Sisi rewards including immunity from investigation for alleged offenses after the suspension of Egypt's former constitution in July 3, 2013 until parliament assumed its duties on January 10, 2016.Former president Mohammed Morsi was ousted on July 3, 2013.Any legal action against the selected officers requires permission from the Supreme Council of the Armed Forces under the new law. They are also privileged with "special immunities" like those granted to diplomats.General-turned-president al-Sisi led the military overthrow of Morsi, who hailed from the now-outlawed Muslim Brotherhood group, following mass protests against his rule. Morsi's ouster was followed by a series of violent confrontations between security forces and Morsi's supporters, including one outside a military installation in Cairo in which dozens were killed.On August 14, 2013, security forces violently dispersed two Cairo encampments supporting Morsi. Hundreds were killed. Rights groups over the years have since denounced the encampments' violent dispersal. Human Rights Watch said the killings "likely amounted to crimes against humanity."Since Morsi's overthrow, Egypt has launched a severe crackdown on Brotherhood members and supporters, arresting many and trying them on terrorism related charges. The Brotherhood was later designated a "terrorist organisation." * Sign up to News24's top Africa news in your inbox: SUBSCRIBE TO THE HELLO AFRICA NEWSLETTERFOLLOW News24 Africa on Twitter and Facebook.