Egypt’s decades-long state of emergency came to an end on Thursday after its last renewal expired, the ruling military said in a statement, vowing to continue to “protect” the nation. The military will continue its “national and historic responsibility, taking into account that the state of emergency has ended, in accordance with the constitutional declaration and with the law,” it said. It said it would continue in that role until it hands over power, as it has promised to do to an elected president by the end of June. Egypt has been under a state of emergency continuously since president Anwar Sadat’s assassination in 1981, allowing authorities to detain people without charge and try them in emergency security courts. Parliament renewed the emergency law for two years in May 2010 when now ousted president Hosni Mubarak was still in power, but limited its application to terrorism and drug crimes.