Then Prime Minister Modi got up to propose Mahajan's name for speaker.
Mahajan is the second woman speaker of the Lok Sabha after Meira Kumar, who as speaker presided over the 15th Lok Sabha.
After Mahajan's election, Modi said the election of the speaker has taken place according to the highest traditions of parliament.
"It is a matter of pride that in the world's biggest democracy, a woman is the speaker. Your guidance will be valuable," the prime minister said in Hindi.a Kumar.