|Part of a series on the
|Constitution of India
The Thirty-ninth Amendment of the Constitution of India, enacted on 10 August 1975, placed the election of the President, the Vice President, the Prime Minister and the Speaker of the Lok Sabha beyond the scrutiny of the Indian courts. It was passed during the Emergency of 1975–1977. It was moved by the Congress government headed by Indira Gandhi to preempt a hearing by Supreme Court of India concerning the setting aside of Gandhi's election by the Allahabad High Court on the grounds of corrupt electoral practices.
Indira Gandhi was accused by Raj Narain for misusing the state machinery during her election polls.
After that, the Allahabad High court did find her guilty, by virtue of which dismissed her immediately from the Lok Sabha. The high court also barred her from contesting in future elections for 6 years and demanded her resignation from PM post. Indira Gandhi appealed to the supreme court the same day and her case was accepted. The court granted her bail and allowed her to remain as Prime minister for 6 more months within which the said case would be completed, yet refused to reinstate her as a member of Parliament. Facing certain doom if the case went on in the supreme court as before, Indira Gandhi successfully recommended to the President to declare a state of emergency the next night and began her rule by decree.
During this time, Indira Gandhi pushed for the thirty ninth amendment act to secure her position and prevent her removal from Indian politics. She also went ahead bringing about the forty second amendment act that included clause four and five of article 368, removing all restriction regarding the amendment power of the parliament and providing that amendments were not contestable in any court of law in India.
Later on in the Indira Gandhi v. Raj Narain case, the 39th amendment was removed and the Doctrine of Basic Structure was reinforced from the Kesavananda Bharati v. State of Kerala case.
 for full information on the case and its procedures.