 He became a judge in 1974.Gaining varied experience as a judge - including two years in Libya and some time in the United Arab Emirates - he became a chancellor in Egypt's Court of Cassation in 1986.In 1986 Hossam El-Gheriany, Yahya al-Refai and Ahmed Mekky organized a conference, attended by President Mubarak, calling for the independence of the judiciary.