A 35-year old man originally from Ennis in County Clare has gone on trial at Derry Crown Court charged with raping a woman in the city almost three years ago.
Patrick McNamara, faces a number of charges including three of rape, one of attempted rape and one of false imprisonment that were alleged to have occurred in his Ardanlee Crescent home in 2008.
He has pleaded not guilty to the charges.
A prosecution barrister told Derry Crown Court that the alleged victim had shared a taxi with the defendant after a night out with her sister in a city centre bar..
The jury was told she went to his home where he locked the front door with a chain and pushed her out of an upstairs bedroom window before threatening to drop her.
He then allegedly carried out a series of sexual assaults before putting a pillow to her face and making a comment about smothering her.
He forced her over to the bedroom window before raping her again.
The court was told she managed to escape but the defendant caught up with her. He hit her head off a wall before neighbours called the police.
The prosecution barrister said samples on a condom found in the house matched the DNA of both the defendant and complainant.
The defendant told police the sex was consensual.
The trial continues.