In 17th Legislative Assembly of Uttar Pradesh (2017) elections, Tripathi was denied a ticket by the Samajwadi Party after his name cropped up in his wife's murder case. After this he contested as Independent politician and was elected MLA by defeating Samajwadi Party candidate Kunwar Kaushal Kishore Singh by a margin of 32,256 (15.26%) votes.
