Since the party was a close ally of PSD, also founded by supporters of the late Vargas, it remained in power when Juscelino Kubitschek was elected President in 1955. Goulart was elected Vice President in 1955 and 1960, becoming President in 1961 with the resignation of Jânio Quadros. PTB was in power again, but Goulart was overthrown by a military-led coup d'état in 1964. Various PTB figures were removed from the National Congress, and all political parties, including PTB, were dissolved on October 27, 1965. Nearly all of the party merged with the bulk of the PSD to form the Brazilian Democratic Movement, the only opposition party permitted for the first decade of the military dictatorship.