A convinced monarchist, Gomes da Costa had consorted with people of various political convictions. That, and his reputation as a soldier, led to his choice by right-wing revolutionaries to lead the
28 May 1926 coup d'état in
Braga that overthrew the
Portuguese First Republic, after General
Alves Roçadas, their original choice, had fallen fatally ill. After the success of the revolution, he did not assume power at first, entrusting the posts of President of the Republic and President of the Council of Ministers (Prime Minister) to
José Mendes Cabeçadas, the leader of the revolution in
Lisbon. Soon, the coup leaders disliked the attitude of Mendes Cabeçadas, a choice of the previous president
Bernardino Machado and still sympathetic towards the old republic. He was replaced by Gomes da Costa in both posts in a meeting in
Sacavém on 17 June 1926. The new government was the first to include the later prime minister and dictator of Portugal,
Antonio de Oliveira Salazar, as finance minister. ==Overthrow and exile==