Australian Prime Minister Scott Morrison has claimed an against-the-odds victory for his centre-right Coalition in the latest twist of his political career.
Amid poor opinion polls, few had predicted that his government would be re-elected.
But as results started to point towards a close majority, Mr Morrison told Liberal Party supporters that he had "always believed in miracles".
Mr Morrison first became prime minister last year after a chaotic period of political infighting and surprise twists.
A social conservative, he also appeals to the moderate elements of the Liberal Party and is widely recognised as a shrewd and pragmatic political engineer.
Although he did not initiate the leadership challenge against former prime minister Malcolm Turnbull last August, he defeated the man who did, Peter Dutton, at the final pass.
He then went on to be thanked for his loyalty in Mr Turnbull's final speech as the country's leader.
Yet Mr Morrison - known as "ScoMo" around Parliament House - had long been seen to harbour leadership ambitions and was an obvious contender once Mr Turnbull's fragile alliances began to collapse.
The 51-year-old has been one of the country's leading religious conservatives and represents a deeply traditional heartland of Sydney.
He opposed the same sex marriage bill but kept a low profile during that debate - he ultimately abstained, a clear sign of his pragmatic approach when politics and personal beliefs collide.
But he rose to national prominence for vigorously enforcing Australia's controversial approach to asylum seekers, including the "Stop the Boats" policy, as immigration minister in Tony Abbott's government.
There was trenchant public criticism of the policy, but Mr Morrison proceeded with his severe approach to the portfolio and built a reputation as a tough operator. He remained unfazed by specific accusations about the lack of transparency over what was happening in Australia's offshore detention centres.
It's a reputation that wasn't helped by a precarious moment in 2011, when he was lambasted for a scathing attack on the Labor Government when it flew asylum-seeker relatives to their drowned children's funerals after a boat tragedy off Christmas Island. He apologised - only for the timing.
So when he changed portfolio to social security apprehension swept across Australia's community sector. But he softened his image and when the time came he helped Malcolm Turnbull secure the leadership in 2015.
He was rewarded with the treasury and is widely judged to have delivered a competent performance. Colleagues and opponents laud his work ethic and what they say is his clear communication and consultation with stakeholders.
The son of a police officer, he grew up in Sydney's beachside suburbs. He's seen as the proverbial "family man" who understands Australia's suburban conservative values and he is now closely connected to the Pentecostal movement. He married his wife Jenny when he was 21 and the pair have two children.
He has always been politically engaged and was a former state director for the Liberal Party. But he also held senior roles in tourism - he was a former managing director of Tourism Australia - before running for federal office in 2007 and finally entering the cut-throat political stage in Canberra.
He emerged triumphant in 2018 in the latest phase of Australia's notoriously bruising political wars as the sixth prime minister in 11 years.
Time as prime minister
Mr Morrison's tenure as prime minister has been somewhat hamstrung by the fact that he has overseen a minority government.
In February, his government suffered a historic defeat as parliament passed a bill that streamlined the process to get sick refugees in offshore detention into the medical care they needed in Australia.
It was the first time his Liberal Party had lost a substantive vote on the floor of the House of Representatives since 1929.
The Morrison government's first budget in April forecast Australia's first surplus in more than a decade, with the prime minister proclaiming: "Today we're bringing the budget back in black."
A focus on the economy - a topic that tends to unite moderates and conservatives within the government - was central to Mr Morrison's election strategy.
Speaking after news of his surprise victory, Mr Morrison paid tribute to "the quiet Australians" who had voted for the Liberal-National Coalition.
"It has been those Australians who have worked hard every day, they have their dreams, they have their aspirations, to get a job, to get an apprenticeship, to start a business, to meet someone amazing.
"To start a family, to buy a home, to work hard and provide the best you can for your kids. To save your retirement. And to ensure that when you're in your retirement, that you can enjoy it because you've worked hard for it. These are the quiet Australians who have won a great victory tonight," he said.