A Miami-Dade judge denied a murder defendant’s request to represent himself Wednesday, ruling that while he is competent to stand trial, he is not capable of representing himself in court.

Onelio Castro-Arroyo, who is accused of fatally stabbing the mother of his child in 2019, made the request during a hearing that was scheduled to address a possible plea agreement.

Speaking through a Spanish interpreter, Castro-Arroyo accused the court of denying him the opportunity to defend himself and said he did not trust either his attorneys or the judge.

“They have not given me the opportunity in this court to defend myself. I do not have an attorney to represent me, and it’s good that the cameras are here today to listen to this and for the people to hear this, so they know what you do in this court,” he said. “I don’t trust this attorney or you.”

According to prosecutors, Castro-Arroyo is accused of stabbing the mother of his child 16 times inside her vehicle in northwest Miami-Dade in May 2019 while their 7-year-old daughter was in the back seat.

Court records state that Castro-Arroyo allegedly called 911 about an hour later and admitted to the killing. Records also state two witnesses saw the attack from a nearby apartment building, and the child later identified her father as the person who killed her mother.

Castro-Arroyo has not been tried or convicted in the murder case.

Before his arrest in the homicide case, Castro-Arroyo had pleaded guilty to first-degree arson in 2015. He was sentenced to five years in prison followed by 10 years of probation and was released in December 2018.

The murder allegations later led to a probation violation in the arson case. In 2019, a judge sentenced Castro-Arroyo to 60 years in prison for violating his probation.

During Wednesday’s hearing, prosecutors offered Castro-Arroyo a plea deal that would add 20 years for the murder charge to the sentence he is already serving. He rejected the offer.

Castro-Arroyo will remain represented by his current attorneys. His murder trial is scheduled to begin Oct. 19.