text: After graduation, Fahmi began to work at the Egyptian General Petroleum Corporation (EGPC). In May 1993, he became a board member and vice head of the EGPC in charge of planning and projects. In January 1997, he was appointed CEO and vice chairman of the Midor oil refining venture near Alexandria. In 1997, he began to serve as a board member of the Petroleum and Mining Chamber and of the Federation of Egyptian Industries. In August 1998, he was named a board member of the Alexandria Company for Petroleum Maintenance. He joined the National Democratic Party and became a member of its policy secretariat.
  Fahmi was appointed oil minister to the cabinet led by the Prime Minister Atef Ebeid on 5 October 1999, replacing Hamdi Al Banbi in the post. Fahmi was also named the chairman of the Egyptian Gas Holding Company. He was instrumental in the establishment of the Egyptian holding company for petrochemicals (ECHEM) in 2002. A 15-year natural gas deal was signed by him and Israeli national infrastructure minister Benjamin Ben-Eliezer in July 2005. In December 2010, he was appointed president of the Gas Exporting Countries Forum. Although he retained his post in the cabinet led by Ahmed Shafik in the January 2011 reshuffle, he resigned from office due to the complaints of oil workers on 16 February 2011. His term ended on 21 February 2011, and he was replaced by Mahmoud Latif Amer as oil minister.