In 2006, at the end of the term of the BNP administration, there was widespread political unrest related to the handover of power to a caretaker government.  As such, the Bangladeshi military urged President Iajuddin Ahmed to impose a state of emergency and a caretaker government, led by technocrat Fakhruddin Ahmed, was installed. Emergency rule lasted for two years, during which time investigations into members of both Awami League and BNP were conducted, including their leaders Sheikh Hasina and Khaleda Zia. In 2008, the ninth general election saw a return to power for Sheikh Hasina and the Awami League led Grand Alliance in a landslide victory. In 2010, the Supreme Court ruled martial law illegal and affirmed secular principles in the constitution. The following year, the Awami League abolished the caretaker-government system.