A 43-year-old man who repeatedly abused a child told police his computer must have been hacked when indecent images were found.
Daniel Mark Wilson, 43, who most recently lived in Cardiff, denied five charges of raping a child under the age of 13.
He also denied five charges of making indecent images of children by downloading them from the internet – and possessing 1,500 images.
But he was convicted by a jury at Mold Crown Court.
In addition to the 15 year sentence, he was ordered to register with the police as a sex offender for life.
Wilson, who formerly lived in the Machynlleth area, was told by Judge Niclas Parry that he had been convicted of “the most wicked offences”.
Judge Parry added, “You are a man who has an obvious unhealthy interest in the most extreme abuse of particularly young children.”
The defendant had offered the girl gifts and money in order to commit the offences and also threatened her not to report it, the judge said.
Wilson, the judge said, had tried to blame everybody to save himself and accused police and witnesses of setting him up.
Prosecuting barrister Mark Connor said that police found 1,580 indecent images on his computer but the defendant denied any knowledge of them.He suggested that others had been responsible or that the computer had been hacked.
But the prosecution said that during the police investigation it emerged that he had been dismissed from a previous job for allegedly viewing child pornography on a computer at work.