Ansari became a minister in 2005, appointed by King Gyanendra. The party won one mayoral post in the 2006 municipal elections. Mohammad Manjur Alam Ansari of the Samajbadi Party Nepal was elected deputy mayor of Kailaya in the same elections.