A 9-year-old boy used his quick thinking to thwart a carjacking while in his dad’s truck in Indiana on Christmas.

The boy had been waiting inside a Dodge Ram while his dad went inside a One Stop in the 600 block of North Washington Street in Kokomo, authorities said.

“As soon as he opened the door, I got scared,” 9-year-old Larry Larimore told NBC affiliate station WTHR.

That’s when the child decided to pull out a pellet gun in the vehicle and point it at the man’s head.

The suspect, identified as 32-year-old Ollie Dunn of Lafayette, Indiana, fled from the vehicle and instead took a green Chevrolet Trailblazer that was parked nearby.

“I didn’t know what to think, I just kind of ran outside and watched him,” Kyle Sparling, owner of the trailblazer, told WTHR.

Larimore’s father, Kevin Cooksey, also saw the theft unfold and told Sparling to get in his vehicle. The three then pursued the suspect while calling police.

“The owner of the Dodge Ram and of the Green Trailblazer followed the stolen vehicle and continued to give information to Kokomo Police regarding the direction of travel,” police said in a statement.

Dunn then crashed the trailblazer near Rainbow and Lafountain Streets before he was arrested.

He was ultimately arrested for attempted auto theft, unlawful entry of a vehicle, vehicle theft, theft, and operator never licensed, according to police.