Six-year-old Daniel Peet of Los Lunas, New Mexico has put his mother through a lot in recent months.
Jessica Peet says he repeatedly refused to put a seat belt on in her van.
A police officer gave her a ticket because of it.
In March, Peet went to the courthouse and pleaded not guilty.
The judged waived the ticket but demanded to see Daniel in the courtroom.
"The judge talked to him and told him if he would keep doing this he would have to come back to the judge and the judge would see what he could do from there," said Jessica.
The judge also assigned Daniel to a special class with the state school of driving. It's designed to teach kids and their parents about safety.
Jessica says her son is now fearful to break the law and knows he will have to go back to the judge if he doesn't follow the rules.
She said she's thankful for the judge's help.
Copyright 2014 by The Associated Press. All Rights Reserved.