A Maine man attempted to flee a courthouse while in handcuffs after he was convicted for assaulting a 1-year-old when two jurors and a detective managed to prevent his attempt to escape.

Nicholas Carter, 31, was observed on Wednesday bolting out of the courthouse in the town of Skowhegan while handcuffed.

Carter was found guilty of aggravated assault against a 1-year-old child, according to the Portland Press Herald. His conviction came after a three-day trial at the Somerset County Superior Courthouse.

According to the outlet, Carter jumped a bar with handcuffs on and exited through the rear door of the second-floor courtroom. The door is used by members of the public to enter and exit the gallery.

ARMY, SHERIFFF'S OFFICE BLAMED FOR MISSING WARNING SIGNS OF MAINE MASS SHOOTER ROBERT CARD: REPORT

Nicholas Carter running

Nicholas Carter, 31, attempts to flee the Somerset County Courthouse in handcuffs Wednesday, Sept 11, 2024, in Skowhegan, Maine, after a jury found him guilty of aggravated assault against a 1-year-old child. (TMX)

A detective, who was inside the courtroom, and judicial marshals chased Carter as he ran down the staircase to the first floor of the courthouse, the outlet reported.

Several videos show Carter, while still in handcuffs, running down a hallway in the courthouse and dodging a lawyer who unsuccessfully attempted to stop him from making a run for it.

Man attempts to escape courthouse in Maine

Nicholas Carter was convicted after a three-day trial at the Somerset County Superior Courthouse. (TMX)

He was then seen running out of the courthouse's main entrance as he was being pursued by multiple people.

Video footage also shows Carter running across a parking lot and across the street before eventually tripping and falling in a yard, where two bystanders, who were also jurors during his trial, held him until the detective caught up.

HISTORIC COVERED BRIDGE CLOSED AFTER TRUCK FALLS THROUGH, CREATING GAPING HOLE

People chase man who tried to escape courthouse

Nicholas Carter was observed on Wednesday bolting out of the courthouse in the town of Skowhegan while handcuffed. (TMX)

CLICK HERE TO GET THE FOX NEWS APP

Carter was taken back into custody and now faces a charge of escape in connection with the incident.

A sentencing hearing for Carter's aggravated assault conviction is expected in the coming weeks.