While filming of the first robbery, Ben Affleck would sometimes direct while in full costume, including the skull mask. Rebecca Hall was unable to keep a straight face, and found it difficult to take direction from him when he was in costume.
Before the movie was released, Ben Affleck praised Jeremy Renner's performance. He even jokingly stated that if ever there was a bad shot or performance from someone else in a scene, editing could easily cut to Renner looking at a napkin in order to make the scene work. Jeremy Renner later would go on to receive an Academy Award nomination for his performance.
The original cut was four hours long. After realizing that the film would never appeal to wide audiences, Ben Affleck cut the film down to two hours and fifty minutes in three days. The studio and producers loved it, but they wanted the film to be no longer than two hours and ten minutes. Eventually, Affleck cut the film down to two hours and eight minutes. While Affleck was happy with the theatrical cut, he said that an Extended Cut on the DVD and Blu-ray will feature deleted scenes on top of the cut footage. He also said that while the theatrical cut of The Town is a close adaptation of the novel "Prince of Thieves", the extended cut is more true to the book.
In one scene, there is a shot of the television playing a movie where a white truck rides into a drive-in movie lot. This is a scene from the movie Heat (1995), a movie that is also about bank robbers being chased by an obsessed detective.
Victor Garber's short appearance in the film was a favor for his friend Ben Affleck. Garber worked for five years with Affleck's ex-wife, Jennifer Garner, on the series Alias (2001), and Garber officiated at Garner and Affleck's wedding.
Ben Affleck originally wanted Mark Wahlberg for the role of James Coughlin, but he was busy shooting The Fighter (2010), so the role went to Jeremy Renner, who ended up receiving the Oscar nomination for Best Actor in a Supporting Role.
In July 2011, during U.S. Congressional debate over raising the country's national debt ceiling, Republican Party leaders used a clip from this film, specifically a scene between Ben Affleck and Jeremy Renner, as a motivational device in meetings to rally party unity. It was immediately lampooned by comedic commentators Jon Stewart and Bill Maher.
This film boasts three past and present Marvel alumni. Ben Affleck played the title character in Daredevil (2003) Jeremy Renner went on to portray Hawkeye in the Marvel Cinematic Universe, and Rebecca Hall played Maya Hansen in Iron Man 3 (2013).
Toward the end of the movie, in the bar, a Red Sox game is playing on the television. The game was from August 28, 2009. The screen shows the Toronto Blue Jays up by three in the fourth inning. In this shot, with the Red Sox batting, a play develops: David Ortiz hits a single to advance Kevin Youkilis to third base. The Red Sox end up winning this game with a score of 6-5.
The studio heads initially wanted the novel's ending, in which Doug (Ben Affleck) is mortally wounded during his shootout with Fergie (Pete Postlethwaite) and dies in Claire's (Rebecca Hall's) arms in her apartment. The ending was filmed, but test audiences approved the theatrical version, in which Doug survives.
Dez's (Owen Burke's) death scene had to be signed off by Major League Baseball (MLB). According to Ben Affleck, one cut included blood spattering the ambulance. MLB decided the scene was too violent, and Affleck used the other cut, featuring less blood.
Towards the end of the film, Doug (Ben Affleck) leaves a note on the car belonging to F.B.I. Agent Frawley (Jon Hamm), with the phrase "go fuck yourself" on it. This is similar to Ben Affleck's next movie Argo (2012), which uses the line "Argo fuck yourself" in several pivotal scenes, including by Affleck himself.