A man was arrested for trying to abduct a woman on a Bronx subway train early Sunday — a horrifying encounter that was recorded by a nearby straphanger, police said.

Bronx resident Sonny Alloway, 48, was charged with unlawful imprisonment for allegedly grabbing the woman and carrying her off a 6 train at the Morrison Avenue-Soundview station about 2:45 a.m., according to police.

The victim was able to escape the fiend’s clutches just moments later, according to footage of the crime.

Alloway sat across from the woman, who was next to another man. He taps her several times as the train is in motion and tries to talk to her.

As the train pulls into the station — and the trains doors open — Alloway strikes.

The woman can heard cursing, saying, “What the f–k!”

Alloway takes her to a platform bench, where the victim gets away and hurries back onto the train.

The man seated next to her, who appeared to be sleeping, seemed unaware of the scare.

“Get the f–k up,” the victim told the man, whom she knew.

She told him that Alloway “grabbed me off the train,” according to the video.

“Who grabbed you?” the man responded.

The video ends with the suspect walking away.

He was apprehended Monday afternoon near the intersection of Rosedale and Randall avenues, police said.