Plot
In the fall of 1999, self-loathing screenwriter Charlie Kaufman is hired to write an adaptation of Susan Orlean's The Orchid Thief. He struggles with anxiety, social phobia, depression, and low self-esteem. His twin brother, Donald, has moved into his house and is freeloading there. Donald decides to become a screenwriter like Charlie and attends seminars by screenwriting guru Robert McKee.
Charlie, who rejects formulaic scriptwriting, wants to ensure that his script is a faithful adaptation but comes to feel that the book lacks a usable narrative and is impossible to turn into a film, which leaves him with a serious case of writer's block. Already well past his deadline with Columbia Pictures and despairing of writing his script with self-reference, Charlie travels to New York City to discuss the screenplay with Orlean directly. Too shy and socially awkward to speak with Orlean upon arriving at her office and after receiving the surprising news that Donald's spec script for a cliché psychological thriller, The 3, is selling for six or seven figures, Charlie resorts to attending McKee's seminar in New York and asks him for advice. Charlie ends up asking Donald to join him in New York to assist with the story structure.
Donald, who is confident socially, pretends to be Charlie and interviews Orlean but finds her responses suspicious. He and Charlie follow Orlean to Florida, where she meets John Laroche, the orchid-stealing protagonist of the book and her secret lover. It is revealed that the Seminole wanted the ghost orchid to manufacture a mind-altering drug that causes fascination.
In a flashback to 1995, Laroche introduces the drug to Orlean after a long attempt at contact after his arrest. In the present, after Laroche and Orlean catch Charlie observing them taking the drug and having sex, Orlean decides that Charlie must be killed to prevent him from exposing them, though Laroche insists it is not necessary.
Orlean forces Charlie to drive to the swamp at gunpoint, intending to kill him. When she gets out of the car, Donald, who had followed them, overpowers her. He and Charlie escape and hide in the swamp, where they resolve their differences.
The next morning, as they try to escape, Donald accidentally wakes a sleeping Laroche, who in turn accidentally shoots Donald. Charlie and Donald drive off in Orlean's car, but collide with a ranger's truck. Donald is ejected through the windshield and dies moments later, but Charlie is saved by the airbag and runs into the swamp to hide.
Moments later, he is spotted by Laroche, who is hesitant to kill him, though Orlean insists. Suddenly, an alligator emerges from the water and kills Laroche. Orlean weeps and says her life is over. She is later arrested, while Charlie is cared for and cleared.
Charlie reconciles with his mother as he calls to inform her of Donald's death. He later tells his former love interest, Amelia, that he loves her. She responds that she loves him too. Charlie finishes the script, which ends with him announcing in voice-over that the script is finished and that, for the first time, he is filled with hope.