A small plane spun out of control over Bayonne, NJ, and crashed into the street, smashing into parked cars and spilling wreckage along the sidewalk Sunday, officials said.

Miraculously, no one was hurt and the pilot, who was transported to Jersey City Medical Center in Jersey City, is expected to survive.

Robert Kubert, the head of public safety, said the pilot was having technical difficulties as he flew his Piper Arrow over the Statue of Liberty. When the pilot realized he wouldn’t be able to make it to Newark Airport, he made Avenue E in Bayonne his landing strip.

“I think we’re very lucky — extremely lucky, considering all the houses around here,” said Kubert. “He was the only injury, but he was alert and talking.”

Marelyn Feliciano, 31, said she was having a typical Sunday morning when the plane crashed into her front yard.

“The whole house shock and all the electricity went out,” she said. “I came out and called 911. We’ve been evacuated from our house. I’m just happy to be alive because it could have hit our house.”

A witness who prefers to be identified by only her first name, Angela, said the plane spiraled into the electrical wires before landing onto the street.

“He took down the electricity first, so the spark happened,” she said. “Then he took down everything with him — the poles, the wires to all the houses here, the trees, the cars. Your mind just doesn’t comprehend it. There was nobody on the so-called runway. I guess he figured it was a good place to land.”

Despite getting knocked around, the pilot “was alive in there,” she said. “We all heard him. He said, ‘I’m here.'”

Neighbor Lianna Petrie said she and her family were getting ready for an outing — and were in the middle of putting on their coats — when they heard a “big bang” and ran outside to see the plane had smashed into their family car, a Nissan Ultima, which was also covered in electrical wires.

“It was a war zone,” said Petrie, 21. “Everybody was screaming and crying.”

Petrie said she was grateful the crash happened before they got into the car.

“I think everything happens for a reason,” she said. “I’m just grateful it took us a long time to get ready.”