However, a judge ordered the council to re-look at the complaint, saying it had not considered the nub of the matter – whether the fouling constituted a “statutory nuisance”.

“Nothing in this judgment should be taken as expressing a view one way or the other on the outcome of the redetermination,” wrote Judge Jarman KC, in documents published following the case heard at Cardiff High Court.

Court documents show the plaintiff emailed his complaint to the council in October 2024, saying he had tried to resolve the issue with a neighbour.

“I wake with dread each day wondering if there is yet more cat mess for me to have to clean up,” he wrote.

“As a parent of a newborn who will soon be playing in our garden, I am particularly concerned about the health risks associated with cat faeces.”

The documents show a council official visited the owner of the cats and was “satisfied that there are adequate provisions for the cats” in the property, like litter trays.

And they wrote that cat owners were required to “make considerations of welfare and not letting cats outside when they are accustomed to it, can be detrimental to their welfare”.

In his judgment, the judge said the “essence of the challenge” was that, instead of considering whether the fouling “amounted to deposits which were prejudicial to health” under section 79 of the Environmental Protection Act 1990, the council focussed on “the manner in which the cats were kept and/or considered the right at common law for cats to roam rather than whether there was a statutory nuisance”.

A Caerphilly council spokesperson said: “We are considering the judgement and will take further appropriate action in due course.”

Richard Williamson has been approached for comment.