A police chase in California had a twist ending on Tuesday night when the suspect broke into a dance routine on Laurel Canyon Boulevard while police had their guns drawn.

During the arrest, three highway patrol officers trained their guns on the driver as he backed away from the car on a shut-down road and barked orders at him, video of the incident shows.

The suspect at first complies, walking slowly away from the car with his hands up and his back in the direction of the police officers.

He then suddenly breaks into the short dance routine, shuffling his feet and flailing his arms while doing several spins and bending at the waist to touch his toes, the video shows.

The dance number lasts about 15 seconds, and the man then begins to follow police orders by lifting up his shirt to show he is not armed.

Prior to the theatrical ending, the suspect led California Highway Patrol cops on a pursuit from Sherman Oaks to Pacoima in the San Fernando Valley north of Los Angeles, according to local TV station KTLA.

Police initiated a “PIT maneuver” — where they intentionally hit the suspect’s car, causing him to spin out and come to a stop — near Laurel Canyon Boulevard and Van Nuys Boulevard, the station reported.

“You don’t always see that happening here at the end of a pursuit,” the KTLA helicopter reporter said as they captured the man dancing.

Once his jig was up, the officers took him into custody, the video shows. Charges against him are pending.