It's not common in India for a Prime Minister to be jailed. However, the political and social scenario in the late 1970s forced the Indian judicial system to apprehend the then Prime Minister Indira Gandhi on charges of "planning the killing of all opposition leaders in jail during the Emergency."
Indira Gandhi's arrest triggered nationwide strikes and protests. The Congress party supporters demanded her immediate release. They even hijacked an Air India flight in protest of their leader's arrest. In the face of such national unrest, Gandhi was freed from prison on the night of December 26, after spending one week in detention for breach of privilege and contempt of the Indian Parliament.