NEW DELHI (AP) — Indian Prime Minister Narendra Modi on Friday was formally elected leader of the National Democratic Alliance coalition, which won the most seats in the national election after his political party failed to win a majority on its own.

The 73-year-old leader, who will be sworn in as prime minister on Sunday for a rare third term, will now form a coalition government.

Modi’s Hindu-nationalist Bharatiya Janata Party has governed India as part of the NDA coalition over the past decade, but this is the first time under his leadership that the party has needed support from its regional allies to form a government.

“This alliance of ours reflects India’s spirit in its true sense,” Modi said after the BJP and coalition members backed him as their prime ministerial candidate. “We were neither defeated nor are we defeated … it was an NDA government in the past, still is and will be,” he added.

Full results from India’s marathon election, which began in mid-April, were released Wednesday. The BJP won 240 seats, well below the 272 needed for a majority in a stunning outcome. Together, the parties in the NDA coalition bagged 293 seats in the 543-member lower house of parliament.