[1][2][3] During the 1882 Anglo-Egyptian War, Fehmy was given command over Egypt's military fortifications by the leader of the Egyptian government, Ahmed ʻUrabi.
In this role, Fehmy oversaw the construction of military fortifications which were attacked by British forces at the battle of Kafr El Dawwar and the battle of Tell El Kebir.
[4] He did oversee the completion of Egyptian fortifications at Tell El Kebir due to being captured in an ambush by a group of British cavalrymen in August 1882, while on a walk with a fellow officer.
After the conflict ended in 1882, he was tried in court by Egyptian authorities alongside ʻUrabi and other members of his regime, and found guilty of treason.
Fehmy and his family were deported to Colombo, Ceylon alongside 'Urabi and other prisoners, where he died in 1890.