A Pennsylvania man was arrested Wednesday night after leading Atlantic City police on a chase onto the Boardwalk and then into the newly opened Margaritaville.

Officer Josh Vadell saw the man driving erratically on Pacific Avenue at South Carolina Avenue shortly after 10 p.m., Lt. Ed Brady said. The driver — later identified as Jesus DeJesus, 40, of Reading, Pa., — refused to stop, and at one point went into the ShowBoat’s porte roche the wrong way, according to the report. DeJesus then continued on, eventually going onto the Boardwalk at States Avenue.

“By this point he had two flat front tires,” Brady said.

He went west on the Boardwalk for a few blocks, then ran out of the car by Resorts and ran onto the beach at Margaritaville.

Officer Heidi Clayton attempted to arrest him and was assaulted. Then K-9 Officer John Devlin and his partner, Clancy, arrived on the scene. Clancy was able to take DeJesus into custody.

An Air Soft BB gun in a holster was found in the car, Brady said.

DeJesus was taken to the hospital for treatment to his wounds, and charged with several crimes, including resisting arrest, assaulting a police officer, assault on a law enforcement animal and unlawful possession of a weapon. He also received eight tickets for motor vehicle violations.

There was no damage to the casino or the bar, whose official opening is today, a Resorts spokeswoman said.

DeJesus was sent to the Atlantic County jail on $125,000 bail.