 He was also elected as a member of the Bar Council of Uttar Pradesh in 2006, securing the maximum votes in the state.Dubey quit his career as a lawyer in 2007 and contested the Uttar Pradesh Vidhan Sabha elections in the Mahona constituency as a BSP candidate.He was Minister of Urban Development, Environment and Prohibition during 2007–12.