A boy accused of raping a fellow pupil at a north Wales primary school has told a jury the alleged attack never happened.
The pupil was said to have carried out the rape in a Colwyn Bay school toilets after watching pornography.
But the boy, now 12, told Mold Crown Court the incident never happened and denied looking at pornography.
He denies the rape two years ago, and inciting the boy to engage in sexual activity.
The defendant told the jury the complainant had threatened to accuse him of sexual assault.
He said it came after he told a teacher the complainant had acted inappropriately with his own girlfriend.
The defendant was later arrested.
He told the court he had never tried to have sex with the boy or take off his clothes.
He had never taken off his own trousers in the presence of the complainant and had never exposed himself to him, the court heard.'Devil dare'
When asked by teachers if anything had happened between them in the school toilets, the boy said no.
The defendant admitted there was an occasion when he approached the complainant and "asked him out", but he said that was "a devil dare".
"I just did it, everyone was laughing and giggling," he said.
"I asked if he wanted to go out with me, he said yes, I stood in silence for a minute because I was not expecting that answer," he alleged.
When asked about pornography, the defendant said that he and a friend had searched a computer at home when he was seven, eight or nine.
They typed in "gay", not knowing what it meant at the time, and it brought up several websites but he did not think they clicked on any of the links, the jury was told.
The boy said he had never returned to look at such material and had never looked at any pornography.
The trial continues.
nternet pornography was likely to be behind the rape of a 10-year-old boy by a fellow pupil in the school toilets, a court has heard.
Karl Scholz, prosecuting, told Mold Crown Court the defendant was "acting out" what he had seen.
He claimed pornography was viewed by both the defendant and the complainant.
The 12-year-old pleaded not guilty to the rape two years ago, and inciting the boy to engage in sexual activity at the school in the Colwyn Bay area.
In March last year the complainant was spoken to by teachers following rumours in the school about his sexual behaviour.
It was during this time, the court heard, the boy told teachers what the defendant was alleged to have done to him.
That night he told his parents and the matter was reported to the police.
He told North Wales Police he disliked the defendant, who he described as "Mr Goody-Good" in front of teachers but who "speaks trash, rubbish" and was "mean and rude" in the playground.
He said the defendant would swear at him and call him gay.
Mr Scholz said the complainant withdrew himself from the playground at break times because he feared being bullied, and would wander up and down outside the boys' toilets alone.
The court was told the first alleged incident happened when the defendant asked the complainant during an English class if he wanted to have sex with him.
"It was an unusual question for a 10-year-old boy to ask another," said Mr Scholz.
The complainant replied "no way" and thought the defendant was joking.
After the lesson had finished and before the lunch break, the complainant went to the toilet but as he tried to leave, the defendant walked in and grabbed him before raping him, the jury was told.
The court heard the complainant told him to stop and scratched the defendant's arm.
Afterwards, the court was told, the complainant was embarrassed and feared that he would be called gay so did not tell anyone.
On a second occasion, it was alleged, the defendant tried to pull the complainant's trousers down as he washed his hands after using the toilet but the boy managed to hold on to his clothes.
"Why not? It's fun," the defendant is alleged to have told him.
During police interviews, the defendant admitted he had been mean to the complainant but had not bullied him.
He said he had never asked him for sex, nothing sexual had happened between them and he only asked him out as a joke.