The Crown Court in Londonderry was told yesterday that a 12-year-old girl was found naked and drunk on a street outside her family home in the early hours of the morning.
The court was told that shortly before, she had been sexually assaulted by an 18-year-old man.
The girl was wearing only her trainers and socks when she was seen on the street in the Waterside area of the city by a member of the public.
The disclosure was made in the case of Jamie Duddy, who has admitted having unlawful carnal knowledge of the girl last March 14.
Duddy, who is originally from the Waterside in Derry, has had to move to another town because of fears of a vigilante reprisal attack.
Sentencing was adjourned until Monday and Duddy, who is on the Sex Offender's Register, was released on continuing bail.