In the 1977 Lok Sabha elections, the Congress party, under Indira Gandhi, lost power to the Janata Alliance. Taking responsibility for the loss of large number of seats in Maharashtra, chief minister Shankarrao Chavan resigned shortly afterwards and was replaced by Vasantdada Patil. Later in the year, the Congress party split, with Pawar's mentor, Yashwantrao Chavan joining one faction, Congress (U), and Indira Gandhi leading her own faction, Congress (I). Pawar himself joined Congress (U). In the state assembly elections held early in 1978, the two Congress parties ran separately but then formed an alliance to keep power under Vasantdada Patil and deny it to Janata Party which emerged as the biggest single party after the election, but without a majority. Pawar served as Minister of Industry and Labour in the Patil government.