The outcomes showed that the Bharatiya Janata Party, or B.J.P., led by Mr. Modi would still secure a landslide victory in legislative seats.

However, the coalition in power in India might soon have a smaller majority.

Prioritizing Mr. Modi's popularity throughout the campaign, the coalition had set a goal of gaining 400 seats going into the election.

According to the first findings, the alliance may only slightly surpass the 272 seats needed for a majority.

A tighter contest for Mr. Modi, the most influential politician in India in a generation, with only a few seats formally announced

A more vigorous battle against the National Democratic Alliance, or N.D.A., and the powerful B.J.P. of Mr. Modi.

Mr. Modi made the case to voters that he would keep India moving forward both domestically and internationally.