However, the BJP could only win 138 seats in the 543-seat parliament, with several prominent cabinet ministers being defeated. The NDA coalition won 185 seats. The Indian National Congress, led by Sonia Gandhi, emerged as the single largest party, winning 145 seats in the election. The Congress and its allies, comprising many smaller parties, formed the United Progressive Alliance, accounting for 220 seats in the parliament. Vajpayee resigned as Prime Minister. The UPA, with the outside support of communist parties, formed the next government with Manmohan Singh as the prime minister.