During the run of It Ain't Half Hot Mum, Shafeek played the part of student Ali Nadim in the popular if politically somewhat incorrect ITV/London Weekend Television sitcom Mind Your Language (1977–79). Along with Barry Evans as their Teacher, Ali was one of a lively group of foreigners in an English as a Foreign Language class at a London night-school. Ali was a Muslim Pakistani who had immigrated to the United Kingdom, and was frequently seen bickering with Ranjeet Singh (Albert Moses), a Sikh from India. Ali called Ranjeet names like "poppadum", frequently calls him a "damn fool" and tells him that he will "kick [him] up the Khyber" ("Khyber Pass" being rhyming slang for "arse"). This antagonistic relationship is depicted regularly throughout the early episodes, with the characters frequently having Verbal and occasionally physical arguments but as the series progresses, their relationship mellows into one of friendly and mutual supportiveness.