The heist film is a subgenre of the crime film. It focuses on the planning, execution, and aftermath of a theft. Versions with dominant or prominent comic elements are often called caper movies. They could be described as the analogues of caper stories in film history. A typical film includes many plot twists, with the focus on the characters' attempts to formulate a plan, carry it out, and escape with the goods. Often a nemesis must be thwarted, who might be either a figure of authority or else a former partner who turned on the group or one of its members.
Usually a heist film will contain a three-act plot. The first act usually consists of the preparations for the heist: gathering conspirators; learning about the layout of the location to be robbed; learning about the alarm system; revealing innovative technologies to be used; and, most importantly, setting up the plot twists in the final act.
The second act is the heist itself. With rare exception, the heist will be successful, although some number of unexpected events will occur.
The third act is the unraveling of the plot. The characters involved in the heist will be turned against one another or one of the characters will have made arrangements with some outside party, who will interfere (often a wise, underestimated detective). Normally, most of or all the characters involved in the heist will end up dead, captured by the law, or without any of the loot; however, it is becoming increasingly common for the conspirators to be successful, particularly if the target is portrayed as being of low moral standing, such as casinos, corrupt organizations or individuals, or fellow criminals.
As an established archetype, it became common, starting in the 1950s, to excise one or two of the acts in the story, relying on the viewers' familiarity with the archetype to fill in the missing elements. Touchez pas au grisbi and Reservoir Dogs, for example, both take place largely after the heist has occurred.
Examples of heist films that take place non-linearly: The Killing (1956); Gambit (1966); Reservoir Dogs (1992).