Mahmoud Ibrahim Mahmoud Hegazy (Arabic: محمود إبراهيم محمود حجازى) (born 1956) is an Egyptian general who was the Chief of Staff of the Egyptian Armed Forces from 2014 to 2017. Hegazy graduated from the Egyptian Military Academy in 1977, and served as the Chief of the Egyptian Military intelligence before his appointment as Chief of Staff by the president of Egypt, Abdel Fattah el-Sisi. He is related to Sisi through the marriage of their respective children. Mahmoud Hegazy was replaced in 2017 by Mohammed Farid Hegazy in a shakeup of high level security personnel. No reason was given for the changes, but since 2013, Egypt has been fighting an ongoing Islamist insurgency that has killed of hundreds of policemen and soldiers. A week before the dismissal, sixteen policemen were killed during a police operation in the western desert of Giza province, and two high level security personnel for Giza were also dismissed. Hegazy was given a position of security advisor to the president.