Men in Black 3 is a 2012 American science fiction action comedy film and the third installment in the Men in Black franchise. Directed by Barry Sonnenfeld and starring Will Smith, Tommy Lee Jones, and Josh Brolin, the film follows Agent J as he travels back in time to prevent the assassination of his partner, Agent K, which threatens the safety of Earth.