A man from Newark who claimed he was sleepwalking when he raped a 17-year-old girl has been given a 6 year jail term.
Zack Thompson, who's 20, denied the allegations for two-and-a-half years before eventually pleading guilty after an investigation by Nottinghamshire Police.
The force say it's the first conviction of its kind in England.
Thompson raped the girl when he was on holiday in Portugal in September 2009.
He handed himself into police when he returned to the UK after the victim made a complaint against him.
Thompson did not deny committing the crime but refused to take criminal responsibility from the outset, claiming he was sleepwalking and had no memory of the attack.
For the next two-and-a-half years the force launched a thorough investigation calling on experts from across the country to seek advice on the rare nature of using sleepwalking as a criminal defence.
Thompson pleaded guilty after the force successfully challenge that defence.
The police officer who led the investigation said: