Sinn Féin has its first Mayor of Dublin City with the election of Críona Ní Dhálaigh.

Cllr Ní Dhálaigh takes over from outgoing Lord Mayor Christy Burke following a voting pact between Sinn Féin, Labour, the Green Party and most of the Independents.

Sinn Féin became the biggest party on the city council following last year's local elections and holding the position of Lord Mayor for the 1916 centenary celebrations was a priority in negotiations.

Cllr Ní Dhálaigh was elected with 41 votes defeating Cllr Jim O'Callaghan of Fianna Fáil who got nine and Independent Cllr Mannix Flynn who got eight.

Congratulations Criona Ni Dhalaigh first Sinn Fein Lord Mayor of Dublin pic.twitter.com/TaAaxWzgqj — Sinn Féin (@sinnfeinireland) June 29, 2015

Cllr O'Callaghan said he was running because Fianna Fáil should have a candidate for the position given the "historic" events next year.

He said he feared that Sinn Féin were going to "hijack" the centenary celebrations.

Cllr Flynn said he was opposing Sinn Féin because of its handling of recent sex abuse cases.

The new Lord Mayor has been a councillor for the Crumlin-Kimmage area since 2006 and is the Sinn Féin group whip.

She is best-known for her work on housing. She is the chair of the council's housing committee and sits on the boards of three different regeneration projects.

Speaking tonight, Cllr Ní Dhálaigh said: "It is with great pride that tonight I take up the office of Ard Mhéara Bhaile Átha Cliath.

"I am especially proud to be the first Sinn Féin mayor for Dublin and I am very grateful for the support that made this possible.

"I know that for some it was a bit of a leap of faith and I acknowledge that."

She added: "The Proclamation speaks to us today more urgently than ever.

"The Proclamation's commitment to 'equal rights and equal opportunities' for all our people has yet to be fulfilled.

"We do not yet live in an equal city, or an equal country.

"I would like our new motto as a city to be Cathair Chomhionannais - City of Equality.

"In line with this sentiment, my priority for the year to come will be those families who have been waiting years for housing, but also those who, once they get a house, find it is not a home, but a battleground, a place where they must fight every day for basic living conditions.

"We must work towards realistic, sustainable and achievable solutions to the housing crisis."