A New Zealand court on Thursday dismissed the appeal of the gunman behind the 2019 Christchurch mosque attacks, calling it “utterly devoid of merit,” according to local media reports.

Brenton Tarrant, who is serving life in prison without parole for the gruesome attacks, had sought to withdraw his guilty pleas.

He told the court in February that he felt forced to plead guilty during his trial because of what he described as "irrationality" caused by the conditions of his detention.

In March 2020, he pleaded guilty at the High Court to 51 counts of murder, 40 counts of attempted murder and one charge of terrorism.

"The facts concerning Mr. Tarrant’s offending are beyond dispute. He has not identified any arguable defense, or indeed any defense known to the law," the Court of Appeal said Thursday.