The voters’ favourable assessment of the incumbent government, Narendra Modi’s leadership, and the Mahayuti’s appeal for Hindu unity helped the alliance retain power.