Michael D Higgins has been re-elected as president of Ireland, after winning 56 per cent of the vote in Friday’s election.

Mr Higgins, who has served as the country’s head of state since 2011, will now keep the top job for another seven years.

He was congratulated on Twitter by the Irish prime minister Leo Varadkar, who wrote, “Really happy that you will continue to be our President for the next 7 years.”

While his victory was expected, he has won by a smaller majority than the polls predicted. Surveys in recent weeks suggested he enjoyed the support of around two-thirds of the electorate.

But the real surprise of this election result has been the performance of runner up Peter Casey, who took 23.1 per cent of the vote.

Mr Casey is a Derry-born businessman now based in the US, who has starred as an investor on the Irish version of Dragon’s Den. He was an outsider candidate polling just 1 per cent in polls published last week.

However, his campaign took a turn at the weekend after he made controversial comments about the travelling community in Ireland, who he claimed were “basically people camping in someone else’s land”.

While it initially appeared the comments might derail his campaign, instead it appears to have drawn a fifth of voters to his camp. In the past, Mr Casey has also criticised Ireland as a welfare state, suggested the country should abandon its historic neutrality, and has also criticised its relationship with the EU.

Presidential candidate Peter Casey arriving at Dublin Castle central count centre earlier on Saturday (Reuters)

Among the losers in this election are Sinn Fein, who were hoping that their candidate Liadh Ni Riada could provide a fresh alternative to Mr Higgins, but she came in third place.

The party has failed to match the 13 per cent of the vote earned by Martin McGuinness at the last election, with early results indicating many of the party’s supporters voted for Mr Higgins, or Mr Casey.

The result will also be disappointing for Sean Gallagher, another businessman who came second in the 2011 election, but has now seen his support base collapse. The other two candidates, Joan Freeman and Gavin Duffy, earned low results, predicted by the polls.

Ireland's presidential candidates Show all 6 1 /6 Ireland's presidential candidates Ireland's presidential candidates Michael D Higgins Irish President Michael D Higgins launches his Shared Ireland, Shared Island initiative at Droichead Arts Centre, Drogheda, Co. Louth. PRESS ASSOCIATION Photo. Picture date: Monday October 22, 2018. Photo credit should read: Niall Carson/PA Wire PA Ireland's presidential candidates Sean Gallagher Previously unissued photo dated 1/10/2018 of Presidential candidate Sean Gallagher at Dublin City University. PRESS ASSOCIATION Photo. Issue date: Monday October 15, 2018. See PA story IRISH President. Photo credit should read: Niall Carson/PA Wire PA Ireland's presidential candidates Joan Freeman Previously unissued photo dated 5/10/2018 of Irish presidential candidate Joan Freeman in Dublin. PRESS ASSOCIATION Photo. Issue date: Tuesday October 16, 2018. See PA story IRISH President. Photo credit should read: Brian Lawless/PA Wire PA Ireland's presidential candidates Peter Casey File photo dated 19/10/18 of Peter Casey who has said he received "thousands" of messages asking him not to pull out of the Irish presidential race. PRESS ASSOCIATION Photo. Issue date: Sunday October 21, 2018. The Londonderry-born businessman commands around 2% of the vote and is trailing the other five candidates, polling has shown. See PA story IRISH President Casey. Photo credit should read: Brian Lawless/PA Wire PA Ireland's presidential candidates Liadh Ni Riada Liadh Ni Riada arrives for the first live presidential campaign debate between all six candidates at RTE Radio in Dublin. PRESS ASSOCIATION Photo. Issue date: Saturday October 13, 2018. See PA story IRISH President. Photo credit should read: Niall Carson/PA Wire PA Ireland's presidential candidates Gavin Duffy Irish presidential candidate Gavin Duffy in Dublin. PRESS ASSOCIATION Photo. Picture date: Thursday October 18, 2018. See PA story IRISH President. Photo credit should read: Brian Lawless/PA Wire PA

Such is Mr Higgins’ popularity in Ireland – for a while it seemed he might be re-elected unopposed – as Mary McAleese was in 2004. But polls showed that while the majority of people wanted him back for a second term, most people also wanted to see a campaign.

Mr Higgins stood with the support of the main Fine Gael and Fianna Fail parties, and commanded support across the political spectrum.

A veteran Irish politician, Mr Higgins was a lifelong member of the Labour party. He has served as a mayor, a senator, a TD in the Irish parliament, and was minister for culture in the 1990s. During this period he helped set up the first Irish language TV station TG4, being a fluent speaker himself. He also has a background in academia and is respected as a published poet.

A natural statesman, Mr Higgins has been praised for his ability to reach out across all sections of Irish society, his handling of difficult anniversaries in the past decade, and for how he represents Ireland on the world stage.

He has achieved a rare feat in Ireland by becoming a somewhat beloved politician – something which is easier to carry in the largely ceremonial role of the presidency, which is above party politics.

But he did come in for criticism during this campaign – particularly from Mr Casey – over the cost of the presidency, his use of expenses and how transparent this was to the taxpayer. None of this damaged Mr Higgins’ reputation personally, but it is likely he will push for some reform of the office during this second term.