Josh Brolin has nabbed the hotly contested role of Cable opposite Ryan Reynolds in Deadpool 2, The Hollywood Reporter has learned.

The production has been on the warpath to find the right actor for the role for months, with Michael Shannon almost nabbing the role and Stranger Things star David Harbour on the shortlist.

In the end, Brolin emerged as a surprise contender, notching his second Marvel Comics character in the process; the actor plays the villain Thanos in the Marvel Studios movies.

Reynolds is reprising his role as the wisecracking mercenary, with the story expanding to include other characters from Deadpool’s corner of Marvel’s X-Men universe.

Brolin also appears in George Clooney’s ensemble Suburbicon, which is set to bow Nov. 3, and stars in the drama The Legacy of the Whitetail Deer Hunter, which is slated to debut Dec 25.

Brolin, who will take center stage as Thanos in Avengers: Infinity War in 2018, is repped by CAA and Ziffren Brittenham.