Fine Gael's Mr Naoise O'Muiri was declared elected to the last seat in the Clontarf Ward of Dublin City Council this afternoon after a marathon seven-day count.
Mr O'Muiri was elected on the ninth count, beating Labour's Ms Orla Farrell by only two votes.
Fine Gael said it was delighted at the news, describing Mr O'Muiri as an "excellent candidate."
Labour said it was "considering the implications" of the result after the Returning Officer turned down a request for a recount.