Castelo Branco became one of the leaders of the 1964 Brazilian coup d'état that overthrew Goulart and ended the Fourth Brazilian Republic. On April 11, Congress chose him to serve out the remainder of Goulart's term and he took the oath of office on April 15, 1964.