The hulking, seemingly unmanned golf cart was doing furious, breakneck doughnuts on the airport tarmac when a yellow-vested worker sprang into action.

What he did next won him applause from a terminal full of bleary-eyed travelers who had stopped to stare out the window at the bizarre battle royale playing out among rows of parked airplanes.

It eventually captured the attention of the president, too.

The dramatic scene unfolded Monday at Chicago’s O’Hare International, one of the country’s busiest airports, and footage of the episode rocketed across social media.

Hours after Kevin Klauer, chief executive of the American Osteopathic Association, posted the video to Twitter, it had racked up more than 7 million views. The worker in the vest — later identified as Envoy Air employee Jorge Manalang — was dubbed a savior.

What actually happened remained unclear during the videos first hours of virality. Late Monday, Karen Pride, the Chicago Department of Aviation’s spokeswoman, referred questions about the incident to American Airlines, which owns Envoy and the equipment involved, and employs the workers who were on scene.

The airline’s media relations department emailed a statement that night saying the company was “investigating an incident involving a catering truck.”

“Preliminary reports indicate that the accelerator became stuck and caused the catering cart to lose control,” the statement continued. “No American Airlines team members were injured and the incident resulted in one 10 minute flight delay.”

But one thing was obvious from the beginning: Were it not for Manalang, the fast-acting employee, the runaway oversized cart may have hurtled into a plane parked at a gate.

As the vehicle spun wildly, apparently knocking one worker to the ground, others dodged and ran for cover. Some stood and looked around, seemingly unsure of what to do. The cart swerved and its wheels smashed what appeared to be soda cans, sending their contents spraying.

In the terminal, passengers gasped.

“Did she get hit?!”

“Oh my God.”

“What is going on??”

But Manalang, vest billowing about him, scampered off-screen, narrowly avoiding a broadside from one of the cart’s swinging metal doors.

“Gonna hit the airplane — here it goes,” one spectator said.

Not so fast.

From stage right, Manalang reappears in the video, at the helm of another airport ground support vehicle. Just in time, the he dutifully rams the side of the wayward cart, toppling it over and sending its contents spilling over the tarmac — but sparing the airplane and their co-workers.

Again, a chorus from the terminal.

“Oh, nice.”

“There ya go!”

“That’s how you do it!”

The crowd clapped its approval.

In its statement, American Airlines added, “We appreciate the quick action of our team member who stopped the vehicle.”

The morning after, President Trump shared the video and praised the hero worker.

As views poured in into Tuesday, American Airline distributed a lengthier press release, identifying Manalang, praising his actions and promising a “special recognition” of his efforts.

According to the release, things started going haywire when a case of water slipped onto the catering cart’s gas peddle, causing the vehicle spin in reverse.

“I was just doing my job,” Manalang said in the statement.

Online, the fracas and the worker’s actions were received with equal parts confusion and adulation.

“THIS IS INSANE,” one person wrote on Twitter.

“Holy Cow! This has won the Internet for today,” said another.

The plane enthusiast website NYCAviation tweeted the understated shout-out, “Creative solution to a rather unusual problem.” And the website Deadspin awarded the clip its “Sports Highlight of the Day.”

One commenter summed it up simply: “We all need heroes.”