Screenwriter Simon Kinberg came up with the idea for the film after listening to a couple of his friends who were in therapy for their marriage. Kinberg noticed that the way they were describing it sounded "aggressive and mercenary" and he "thought it would make an interesting template for a relationship inside of an action film.