the secretary general of the Socialist Party and the party's candidate for Prime Minister, so that he could prepare his campaign for the October 2015 general elections. Candidate for prime minister In September 2014, the Socialist Party chose Costa as its candidate to be prime minister of Portugal in the 2015 national elections; in a ballot to select the party's candidate, gaining nearly 70 percent of the votes, he defeated party leader António José Seguro, who announced his resignation after the result. By April 2015, he stepped down as mayor to focus on his campaign. During the campaign, Costa pledged to ease back on austerity and give more disposable income back to households. He proposed to boost incomes, hiring and growth in order to cut the budget deficits while scrapping austerity measures and cutting taxes for the middle and lower classes, asserting that would still allow deficits to reduce in line with the Euro convergence criteria. Also, he pledged to roll back a hugely unpopular hike in value added tax on restaurants and reinstate some benefits for civil servants. Prime Minister of Portugal On 4 October 2015, the conservative Portugal Ahead coalition that had ruled the country since 2011 came first in the elections winning 38.6% of the vote, while the Socialist Party (PS) came second with 32.3%. Passos Coelho was reappointed Prime Minister the following days, but António Costa formed an alliance with the other parties on the left (the Left Bloc, the Portuguese Communist Party and the Ecologist Party "The Greens"), which altogether constituted a majority in Parliament, and toppled the government on 10 November (the People–Animals–Nature party also voted in favour of the motion of rejection presented by the left alliance). After toppling the conservative government, Costa was chosen as the new prime minister of Portugal by President Cavaco Silva on 24 November and assumed office on 26 November. By March 2017, polls put support for Costa's Socialists at 42 percent, up 10 points from their share of the vote in the 2015 election and close to a level that would give them a majority in parliament were the country to vote again. In the 2017 local elections, Costa further consolidated power in Portugal as his party captured a record haul of 158 town halls out of the country's 308 cities and towns; nationwide, the Socialists’ vote share topped 38 percent, again up from their result in