Wahlberg later transitioned to acting, appearing in films such as the dramas The Basketball Diaries and Boogie Nights as well as the satirical war comedy-drama Three Kings during the 1990s. In the 2000s, he starred in the biographical disaster drama The Perfect Storm, the science fiction film Planet of the Apes, the heist film The Italian Job, the crime thriller film Four Brothers and the Martin Scorsese-directed neo-noir crime drama The Departed, for which he received an Academy Award nomination for Best Supporting Actor. In the 2010s, he starred in the action comedy The Other Guys alongside Will Ferrell, the biographical sports drama The Fighter (for which he earned an Academy Award nomination as a producer for Best Picture), the comedy Ted, the war film Lone Survivor, the crime comedy Pain & Gain, the science fiction action film Transformers: Age of Extinction and the sequel Transformers: The Last Knight, the comedy Daddy's Home, the disaster film Deepwater Horizon, and the thriller Patriots Day.
A marksman living in exile is coaxed back into action after learning of a plot to kill the President. Ultimately double-crossed and framed for the attempt, he goes on the run to find the real killer and the reason he was set up.