 Jânio Quadros resigned on August 25, 1961.At the time of his resignation, João Goulart was in the People's Republic of China on a foreign relations trip.On August 29, the Brazilian Congress heard and vetoed a motion to stop Goulart from being named the president, brought by the heads of the three branches of the military and some politicians, who claimed Goulart's inauguration would put the country "on the road to civil war."