An armed group robbed a man at gunpoint of his BMW in Midtown and took it for a joyride before being apprehended by cops early Thursday, according to police.
Authorities said the man was standing next to his late-model car near 45th Street and Lexington Avenue, just steps from Grand Central Terminal, when two or three men approached him and snatched his ride at gunpoint around 1:10 a.m.
According to police, investigators were able to track the stolen vehicle to an unspecified location uptown, on Ninth Avenue.
The suspects were busted at the scene and a gun was recovered, police said.
Charges were pending later in the morning, cops said.