El Ghazi first emerged as an international athlete at the 1964 International Cross Country Championships, where he ran in the Moroccan team and helped them (alongside Abdeslem Bouchta) to finish third in the rankings through his 17th-place finish.[1] Though fellow Moroccan Rhadi Ben Abdesselam had won the race four years earlier, this represented the first time that a non-European nation had reached the team podium in the international cross country competition.[2] El Ghazi's Olympic debut followed later that year and at the 1964 Tokyo Olympics he placed ninth in the final of the steeplechase.[3] He was Morocco's top performer at the 1965 International Cross Country Championships, but in 38th place he had fallen down the rankings.[4] Greater recognition came a t the 1965 Pan Arab Games, however, where he won a gold medal double in the 5000 metres and the steeplechase (setting a games record in the latter event. This extended Moroccan dominance in the events, as his countrymen Saïd Gerouani Benmoha and Abdeslem Bouchta were the previous champions.[5]
The 1966 season proved to be the greatest of El Ghazi's career. Based in Rabat, he had been given six months off from work in order to train for the upcoming cross country championships.[6] First came a victory at the World Military Cross Country Championships, taking the title from Tunisian Mohammed Gammoudi[7] Gammoudi was absent from the 1966 International Cross Country Championships and defending champion Jean Fayolle was not in the running.[8] El Ghazi crossed the line some seven seconds ahead of the next competitor Derek Graham of Ireland.[6] This made him only the second African to win the title, after Rhadi Ben Abdesselam, and he led the team to the continent's second team medal in the race with the help of Ahmed Oukbouch.[8] His win highlighted the increasingly global nature of the competition during this period.[9]
His career declined shortly after but he made three more appearances at the International Cross Country Championships. Absent for the 1967 race, he returned in 1968 and placed 24th, with Mohamed Said and Larbi Oukada taking up the role of Morocco's top runners.[10] The Moroccan team also suffered a decline alongside that of El Ghazi: their men took fifth in 1968, seventh at the 1969 race (where El Ghazi was 28th) and then sixth in the 1971 race, where El Ghazi finished 49th in his last appearance.[4] No Moroccan reached the top fifteen in this period. A revival occurred in 1972 when four men achieved that feat to bring Morocco to second – the best placing of an African team in the competition's history.[2][11]