Benedict Cumberbatch has foiled plenty of crimes on his hit BBC series “Sherlock” and the Oscar-nominated actor proved to be just as heroic in real life when he intervened in a mugging and sent the perps scrambling.

As The Sun reports, the 41-year-old “Doctor Strange” star was a passenger in an Uber when he witnessed four men assaulting an unarmed delivery cyclist in London, battering him with bottles and fists.

According to witnesses, Cumberbatch jumped out of the Uber — in which he was riding with wife Sophie Hunter — and ran toward the fracas, yelling, “Leave him alone!”

RELATED: Benedict Cumberbatch On Pay Equality: ‘If She’s Not Paid The Same As The Men, I’m Not Doing It’

The fast-thinking actor dragged the attackers off the bloodied cyclist; when the men shifted their attacks toward the actor, he was able to fend them off before they fled.

“The cyclist was lucky, Benedict’s a superhero,” Uber driver Ma­n­uel Dias told The Sun.

“I was taking Benedict and his wife to a club — but I didn’t know it was him at first,” Dias added. “I went to turn down into Marylebone High Street and we saw four guys were pushing around a Deliveroo cyclist. My passenger jumped out, ran over and pulled the men away. They turned towards him and things looked like [they were] getting worse, so I joined in.”

RELATED: Benedict Cumberbatch Left Terrified After ‘Ellen’ Prank, Reveals How He Got His Hands On Top Secret ‘Avengers: Infinity War’ Script

Added Dias: “He stood there instructing them in the street, shouting, ‘Leave him alone.’”

In a bizarre coincidence, the incident occurred near Baker Street, the same street that has been home to Sherlock Holmes since the character was first introduced in Sir Arthur Conan Doyle’s iconic novels.

“It was only then I recognized Benedict. Then it all got a bit surreal. Here was Sherlock Holmes fighting off four attackers just round the corner from Baker Street,” said Dias.

RELATED: Benedict Cumberbatch Says ‘Patrick Melrose’ Is The Most Difficult Role Of His Career

“I had hold of one lad and Benedict another. He seemed to know exactly what he was doing. He was very brave. He did most of it, to be honest,” Dias explained. “They tried to hit him but he defended himself and pushed them away. He wasn’t injured. Then I think they also re­cognized it was Be­ne­dict and ran away.”

Dias described Cumberbatch as “courageous, brave and selfless. If he hadn’t stepped in the cyclist could have been seriously injured. He asked the rider how he was and when he said, ‘I’m OK,’ Benedict just hugged him.”

Cumberbatch, however, downplayed the incident, only saying, “I did it out of, well, I had to, you know . . .”