A middle school student has confessed to tossing a piece of wood at President Trump’s motorcade in Florida, police said.

The unidentified youngster is facing charges for hurling the piece of 2-by-4 at one of the vehicles in the presidential motorcade as it headed down Southern Boulevard in Palm Beach shortly before 2 p.m. Friday, cops said.

When officers from the Palm Beach County’s Sheriff’s Office questioned the suspect, the child “implicated” four other students who were involved in the incident. It’s unclear if they too have been nabbed.

Cops said charges against the boy will be filed with the PBC State’s Attorney’s Office.

Trump was heading to his Mar-a-Lago resort nearby when the motorcade was struck.

On Saturday, the president held a campaign-style rally at Orlando Melbourne International Airport.