Portugal’s coalition government earned another four-year term, winning a general election through an improving economy that weathered the austerity measures contested across Europe.
With 99% of districts reporting, the centre-right government had 37% compared with 32% for the main opposition centre-left Socialist Party. Smaller, leftist parties made up the rest.
The victory was bittersweet, however, as the government failed to achieve a parliamentary majority.
That means it will be outnumbered in the 230-seat chamber by left-of-centre MPs who could block its policy proposals.
A period of political instability could ensue, making investors once again nervous about the eurozone’s ability to sort out its economic problems.
Incumbent prime minister Pedro Passos Coelho said his government is determined to abide by the eurozone’s fiscal rules. He said he is willing to compromise with opposition parties to achieve the “essential goal” of reducing national debt.
“Times haven’t been easy, and the times ahead will be challenging,” he said.
Portugal needed a 78 billion-euro (£57 billion) bailout in 2011 amid the eurozone’s debt crisis.
The government complied with a German-led austerity plan to restore the 19-nation bloc’s financial health, cutting pay, pensions and public services and increased taxes that brought large street protests and strikes.
The austerity policies helped propel Portugal into a three-year recession, and the Socialists were optimistic they would benefit from a backlash against the government.
Socialist leader Antonio Costa conceded defeat, but warned the government must change its conduct now that it has lost its outright majority in parliament.
“The government has to understand that things are different now,” he said, adding that he would not seek to make the country ungovernable.
The economy is improving, allowing the government to argue that austerity is paying off.
The economy grew 1.5% in the first half of this year compared with the same period in 2014. The unemployment rate has fallen from a record 17.7% in 2013 to 12.3% last July.
Portugal shunned the kind of radical alternatives that have emerged in Europe in recent years, such as Greece’s Syriza and Spain’s Podemos, which have challenged mainstream parties from the far left.
The Portuguese have a traditional preference for moderate parties, and voters apparently feared knocking the long-awaited economic recovery off-track. A handful of grassroots anti-austerity parties barely registered in the ballot.
The Portuguese government’s showing will give heart to Mariano Rajoy’s conservative government in neighbouring Spain, which faces an election on December 20.
Mr Rajoy’s government has imposed deep spending cuts, but growth has returned to the country.
Mr Passos Coelho, 51, has nurtured an image as a cool-headed, resolute leader who is determined to restore his country’s fortunes through unpopular measures and painful reforms, whatever the political cost.
He says Portugal cannot afford to go back to borrow-and-spend policies and must live within its means.
The government, made up of the Social Democratic Party and its junior partner, the Popular Party, united the right-of-centre vote.
The left-of-centre vote was fragmented between the Socialists, the Left Bloc - with at least 10%, its best-ever result – and the Communist Party, with 8%.
The Socialist Party promised to start easing the tax burden and speed up growth through domestic consumption, but had a credibility problem as it led Portugal to the brink of bankruptcy four years ago.