The Supreme Court ruled the man had natural rights over the boy
An Irish sperm donor has won a court battle to get access to his son, who is being raised by a lesbian couple.
The Irish Republic's Supreme Court ruled that while he was not entitled to guardianship, the man has natural rights over the three-year-old child.
Five judges unanimously found it was in the best interest of the boy's welfare to remain in contact with his father.
The man donated his sperm to the lesbian couple, who were his friends, so one of them could have a baby.
They wanted the child to have knowledge of his biological father - a 41-year-old gay man - who would be like a "favourite uncle".
But their friendship deteriorated, and he started court action two years ago when the couple revealed they planned to move to Australia for a year with the boy.
The Supreme Court overturned an earlier High Court decision that the man was not entitled to access to the child.
In her judgement, Ms Justice Susan Denham found that the sperm donor has rights as a natural father and added that he had formed a bond with the child when he was born.
"There is benefit to a child, in general, to have the society of his father," she said.
"I am satisfied that the learned High Court judge gave insufficient weight to this factor.
"The basic issue is the welfare of the child," she added.
The judge urged the parties to agree to terms of access before the case is dealt with back in the High Court.