A Delaware truck driver who got arrested at JFK Airport over the weekend for crashing his vehicle and leaving the scene admitted to cops that he wrecked because he was “having sex” — and high on crystal meth, according to prosecutors.

Stephen Walker, 38, allegedly told police that he was hooking up with another man in the back of his box truck on Saturday morning right before the accident happened.

As they were making love, the man’s ex-boyfriend showed up and confronted the pair — startling Walker and causing him to hit a four-door sedan, sources said.

“I crashed because we were having sex,” Walker allegedly admitted.

“Yes, I was driving the truck,” he added, according to prosecutors. “We did crystal meth.”

Walker, who was in New York dropping of freight, was allegedly pantless when taken into custody on Saturday.

He tried hiding in a horse stable at JFK’s animal-screening facility after fleeing the scene, sources said, but was eventually caught.

Walker was arraigned Sunday on attempted grand larceny, reckless endangerment, impaired driving and other charges. He was ordered held on $5,000 bail.

Prosecutors described him as a truck driver from Newark, Delaware, where he lives with his brother.

“Drugs and alcohol makes me more awake,” Walker allegedly told cops at one point.

It’s unclear if authorities have tried speaking with Walker’s lover or the jilted ex-boyfriend. Neither of them were arrested on Saturday.