Dalton Russell (Clive Owen), seated in what appears to be a jail cell, opens the film with a prologue about having carried out the "perfect robbery". A team of masked robbers, dressed as painters who call each other by variants of the name "Steve", seize control of a Manhattan bank and take the employees and patrons hostage. They divide the hostages into groups and hold them in different rooms. Additionally, they take all of the hostages' clothes and dress everyone in jumpsuits and masks identical to those of the robbers. This way, the robbers and hostages will be indistinguishable to the police. Police surround the bank and detectives Keith Frazier (Denzel Washington) and Bill Mitchell (Chiwetel Ejiofor) take charge of the negotiations. Russell, the leader of the robbers, demands food. The police supply pizzas whose boxes include listening devices; these pick up a language which the police finally identify as Albanian. However, they discover that the conversations are just old propaganda recordings of the deceased Albanian communist dictator Enver Hoxha; it becomes clear that the robbers anticipated surveillance.After being informed of the robbery, Arthur Case (Christopher Plummer), the chairman of the board of directors and founder of the bank, hires "fixer" Madeleine White (Jodie Foster) to try to protect the contents of his safe deposit box within the bank. White, with assistance from the Mayor of New York City, arranges a conversation with Russell, who allows her to enter the bank and inspect the contents of the box, which include documents from Nazi Germany. Russell implies that Case started his bank with money that he received from the Nazis for unspecified services, resulting in the deaths of many Jewish people during World War II. White tells Russell that Case will pay him a substantial sum to destroy the contents of the box. She claims she can arrange a minimal jail sentence as Russell and his team have not yet stolen anything or hurt or killed anyone; Russell declines her offers.Frazier demands to inspect the hostages before allowing the robbers to leave and Russell takes him on a tour of the bank. As he is being shown out, Frazier attacks Russell, but is restrained by another robber. Alone with Russell shortly afterward, the other robber, who turns out to be one of the hostages "interviewed" by Frazier, begins to panic and ask what would have happened had Frazier managed to remove Russell's mask. Russell appears lost in thought. Frazier later explains to Mitchell that his actions were intended to provoke Russell to establish whether he was capable of killing and concludes he is not. The robbers counter this theory by shooting a hostage in the head.The execution prompts the ESU team into action. They plan to storm the bank and use rubber bullets to knock out the occupants. However, Frazier discovers that the robbers have planted a listening device on the police; aware of the police plans, the robbers detonate smoke grenades and release all the hostages. The police detain everyone, knowing that some of the hostages are members of the gang, but can't distinguish between the two. They interrogate the hostages harshly, questioning their honesty and trying to glean useful information, to no avail. A search of the bank reveals that the robbers' weapons are plastic replicas. They find props for faking the hostage's execution; the blood was red paint. Curiously, no money or valuables appear to have been taken.With no way to identify the suspects and unsure if a crime has been committed, Frazier's superior, on orders from the mayor, tells him to drop the case, but Frazier continues. He searches the bank's records and finds that one of the safe deposit boxes does not appear on the records and obtains a search warrant to open it. He is confronted by White, who informs him of Case's Nazi dealings. She tries to persuade Frazier to drop his investigation, but he refuses, playing a recorded, incriminating conversation that she earlier had with him. White confronts Case, who admits to his actions and reveals that the box contained, aside from incriminating paperwork, diamonds and a ring which had belonged to a French Jewish banker and his family who were sent to concentration camps. White is repulsed by Case but accepts his payment for her mission, although it was one of her few failures. She tells him that the robber took the incriminating paperwork so that, if he returns with a blackmail demand, Case will have to pay him off.Russell reappears in the same location in which he gave his opening monologue. He is revealed to have been hiding in a small room behind a fake wall the robbers had constructed inside the bank's supply room. The construction of the hiding area was the real reason for their delaying tactics. Russell emerges a week after the robbery with the contents of Case's safe deposit box, including incriminating documents and several bags of diamonds. On his way out, he bumps into Frazier, who does not recognize him. Russell goes to a car where his four associates are waiting, and they drive off.When Frazier opens the safe deposit box, he finds a large ring with a note from Russell telling him to "follow the ring". Frazier confronts Case and next goes to see White, who is in a restaurant with some VIPs, including the mayor. Frazier gives her the contact information for the Office of War Crimes Issues at the U.S. State Department. On returning home to his girlfriend, Frazier finds a loose, small but valuable diamond in his pocket. He realizes it must have been slipped to him by Russell in the bank after he intentionally bumped into Frazier.
Output: Question: Why did the police detain everyone?, Answer: Some of the hostages were gang members