Cobra is a 1986 American action film directed by George P. Cosmatos, and written by Sylvester Stallone, who also starred in the title role. The film co-stars Reni Santoni, Brigitte Nielsen and Andrew Robinson. The film received negative reviews, with much criticism focused on the overuse of genre tropes, yet it debuted at the number one spot on the U.S. box office and became a financial success.
The film was loosely based on the novel Fair Game by Paula Gosling, which was later filmed under that title in 1995. However, Stallone's screenplay was originally conceived from ideas he had during pre-production of Beverly Hills Cop, whose screenplay he heavily revised. He had wanted to make Beverly Hills Cop a less comedic and more action-oriented film, which the studio rejected as being far too expensive. When he left that project, Eddie Murphy was brought in to play the lead role.
Director Nicolas Winding Refn is a huge fan of Cobra. In Refn's cult movie Drive the main character has a toothpick in his mouth in some scenes; this is Refn's homage to the opening scene of Cobra where Stallone has a matchstick in his mouth. Main star of the movie Ryan Gosling also said in interview that he is a fan of Stallone and Cobra which is why he "borrowed" his character's toothpick habit from Cobra.