 He had continuously represented Hajipur constituency in Bihar legislative assembly winning elections since 2000 (2000, Feb-2005, October- 2005 and 2010) till he was elected for the parliament.In 23 May 2019, Rai became Minister of State for Home Affairs.Rai joined politics from his college ABVP unit.