New Delhi: Weeks after undergoing surgery, former President of Egypt Hosni Mubarak passed away at 91 on Tuesday, local media reported. Mubarak, who ruled the Arab nation of Egypt for more than 30 years, was ousted after mass protests broke out against him in 2011. Later, he was also imprisoned for years after the uprising in the country. However, he was freed in 2017 after being acquitted of most of the charges. Also Read - Egypt's Hosni Mubarak walks free after six years in detention

Born on May 4, 1928, in the village of Kafr al-Meselha in the Nile Delta, Mohamed Hosni Mubarak was the son of a government official. Also Read - Egypt's ex-President Hosni Mubarak released

After finishing schooling, Mubarak joined the Egyptian Military Academy and then became the air force pilot and later he also became the air force commander. Mubarak in 1975 became the vice president to Anwar Sadat. Also Read - Egyptian court orders release of two Hosni Mubarak sons from prison

Just before joining politics, Mubarak was with the Egyptian Air Force where he served as its commander from 1972 to 1975.

In the 1950s, Mubarak returned to the Air Force Academy as an instructor and worked there until 1959.

His entry to politics happened when he assumed the presidency after the assassination of Anwar Sadat. With his presidency, Mubarak became Egypt’s longest-serving ruler since Muhammad Ali Pasha, who ruled the country from 1805 to 1848.

In 2011, Mubarak stepped down from the presidency after 18 days of the uprising which was called the Egyptian Revolution.

Later in that year in April, a prosecutor ordered Mubarak and his two sons to be questioned over allegations of corruption and abuse of power. Following a number of charges against him, an Egyptian court sentenced Mubarak to life imprisonment. In the prison, Mubarak was reported to have suffered a series of health crises. However, Mubarak was acquitted on 2 March 2017 by the Court of Cassation and released on 24 March 2017.