 Madhok was arrested during the Emergency and was imprisoned for 18 months, (1975–1977).He joined the Janata Party, into which Jana Sangh merged, but resigned in 1979 and tried to revive Jana Sangh under the name Akhil Bharatiya Jana Sangh.However, the party was not successful.