Three men murdered their neighbour and tried to hide evidence after discovering he was a convicted child killer, a court has heard.
David Gaut, 54, was stabbed 150 times at his home in Elliotstown, New Tredegar, Caerphilly, in August 2018.
Newport Crown Court was told Gaut had recently been released after a 32-year prison sentence for murdering a young boy.
Darran Evesham, 47, Ieuan Harley, 23, and David Osborne, 51, deny murder.
Osborne admitted perverting the course of justice, with relation to moving Gaut’s body, attempting to clean up blood and attempting to dispose of other evidence, but denies murder.
Mr Evesham and Mr Harley denied both murder and perverting the course of justice.
Prosecuting, Ben Douglas-Jones QC told the jury the three defendants were “horrified” to learn of Gaut’s past after carrying out research on the internet.
They discovered he had been convicted of killing 15-month-old Chi Minh Shek.
Gaut lived next door to Osborne, and the court heard Osborne “lured” him to his flat.
The men are accused of moving the body into Gaut’s flat, cleaning Osborne’s flat, trying to dispose of blood-stained clothing and setting fire to a car to destroy incriminating items.
The court heard Osborne told police Gaut had been killed at his flat, and that Mr Harley had stabbed him after an argument because they had found out about the child’s murder.
Osborne claimed he was in the kitchen when it happened, and he helped move the body because he was “scared” of Mr Harley.
The court was also told a witness overheard all three men discussing the murder and moving the body later in a nearby pub.
The case continues.