Some Samajwadi Party (SP) MPs made adverse comments on the issue recently.
In an apparent dig at the SP's rule in the state, the prime minister said, "Five years ago the mafia ruled the roost on the roads of Uttar Pradesh. The worst sufferers were our sisters and daughters".
"It was difficult for them to move out on roads and go to schools and colleges. But Chief Minister Yogi Adityanath has put these hooligans in their right place," he said.
The SP, which was in power from 2012 to 2017, was succeeded by the BJP government in Uttar Pradesh.
Hailing the Adityanath government, the prime minister said, "In Uttar Pradesh now there is security, rights and opportunities (for
women). I am confident that with the blessings of our mothers and sisters, no one will push the state back to darkness again. Come let's take an oath from this pious land of Prayagraj that Uttar Pradesh will progress." Modi was speaking after participating in a programme where he transferred Rs 1,000 crore to the bank accounts of self help groups to benefit around 1.6 million women.