A crook jacked an ATM machine from a Queens gas station and drove off with his haul in front of several stunned onlookers Friday morning, cops and witnesses said.

The thief backed a black Jeep up to the outdoor cash machine at a BP station on the corner of Atlantic Avenue and Van Wyck Expressway in Richmond Hill about 7:10 a.m.

He exited the vehicle, tying either a rope or chain around the ATM machine, and secured the line to his SUV, police said.

Once back inside the Jeep, he hit the gas, ripping the machine from the ground. He then shoved it into the back.

Customers who witnessed the bizarre stunt alerted the store manager.

“I heard something falling down. They came in and told me,” said Sunil Kamboj, 34.

The driver, described as Hispanic who wore a dark hoodie, then sped off with his prize.

He was last seen heading down the southbound service road of the Van Wyck Expressway, cops said.

The brazen robbery shocked Kamboj, who said the gas station is normally safe.

“This should not be happening, a robbery early morning in front of the public. I don’t think he had fear,” he said of the suspect.

The manager added, “there are cameras and people. He must know he’s under surveillance and the police will see it and catch him. It’s like he didn’t care.”