The Maintenance of Internal Security Act (MISA) was a controversial law passed by the Indian parliament in 1971 giving the administration of Prime Minister Indira Gandhi and Indian law enforcement agencies very broad powers – indefinite preventive detention of individuals, search and seizure of property without warrants, and wiretapping – in the quelling of civil and political disorder in India, as well as countering foreign-inspired sabotage, terrorism, subterfuge and threats to national security. The law was amended several times during the subsequently declared national emergency (1975–1977) and used for quelling political dissent. Finally it was repealed in 1977, when Indira Gandhi lost the 1977 Indian general election and the Janata Party came to power.