A Donegal man has been jailed for 18 months for two counts of defilement of a child under the age of 17.

The man, who cannot be named for legal reasons, pleaded guilty to two charges relating to a 14-year-old girl who was described in court as being vulnerable.

The man was 23 at the time of the offences.

Letterkenny Circuit Court heard they first met in a school and developed a relationship through Facebook.

They met on two occasions in a vacant house where they had sexual intercourse.

The girl told gardaí she had sneaked out of her home to meet the man the first time and that she was very drunk but he was sober.

On the second occasion, she said she had also been drinking and the man was very drunk.

Gardaí became involved after the girl told a social worker about the incidents.

The man told gardaí he was dealing with depression and was drinking a lot at the time, but he knew it was an offence and deeply regretted what had happened.

Judge Matthew Deery said that the girl was 14 and he was 23 and these were very serious offences.

The man had taken advantage of the situation, he said, and this had to attract a custodial sentence.

He imposed a two-year sentence for each charge with the final six months suspended in each case. The sentences will run concurrently.