 Joining the Indian Foreign Service in 1961, Ansari subsequently served Indian missions in Baghdad, Rabat, Brussels and Jeddah.From 1976 to 1980, he served as the Indian Ambassador to the United Arab Emirates.Mohan Jashanmal, the Chairman of Indian Business and Professionals Group said that "Ansari was instrumental to get land for the Indian School from His Highness Shaikh Khalifa Bin Zayed Al Nahyan".