But during his presidency he made good on his election promise to leave Egypt's 1979 peace treaty with Israel untouched despite his gut sympathy with the Islamist Hamas rulers of Gaza.
He also kept up Cairo's longstanding defence ties with Washington which earn it $1.3 billion (1 billion euros) a year in US military aid, assistance called into doubt by President Barack Obama after Wednesday's coup.