Here's the amazing story behind one of the most famous lines ever uttered in a movie

Neilson Barnard/Getty(L-R) Robert De Niro and Martin Scorsese talking at Thursday night’s screening of ‘Taxi Driver’ at the Tribeca Film Festival.

On Thursday night, the Tribeca Film Festival had its biggest event this year: the 40th anniversary screening of “Taxi Driver,” with many of the main principals on hand to talk after the movie, including Robert De Niro, director Martin Scorsese, and screenwriter Paul Schrader.

In the talk after the movie, the three legends delved into the story behind one of the film’s landmark scenes: the “You talkin’ to me?” line De Niro’s character Travis Bickle gives to himself in the mirror.

“A key improvisation in the movie was Bob in the mirror,” Scorsese told the crowd, referring to De Niro’s delivery of the line.

De Niro made up the entire sequence of Bickle talking to himself on the spot.

As Schrader pointed out, he wrote a vague description of what would go on in the scene.

“The script said he looks in the mirror and plays like a cowboy, pulls out his gun, talks to himself,” Schrader said. “So Bob called me and said, ‘What does he say?’ and I said, ‘Well, act like you’re a kid and you got that little holster and cap gun and you’re standing there.’ He took it from there.”

At that point in the movie, Bickle has purchased a small arsenal of handguns and plays out what he’s going to do to clean up New York City.

Walking to the mirror, he mimics an altercation by saying, “You talkin’ to me? … Well, I’m the only one here.” And then he pulls out the gun he has in his sleeve.

The moment has been repeated countless times since the movie opened in 1976.