An emergency law was first enacted in Egypt in 1958, as "Law No. 162 of 1958". A state of emergency was declared in 1967 during the 1967 Arab–Israeli War which lasted until 1980. After a break of 18 months, a state of emergency was reimposed following the assassination of President Anwar Sadat in 1981, and was repeatedly extended every three years. The continuous state of emergency was one of the grievances of demonstrators giving rise to the Egyptian Revolution of 2011.