EXCLUSIVE: Sons Of Anarchy star Tommy Flanagan has landed a lead opposite Nicholas Hoult, Henry Cavill and Logan Marshall Green in Sand Castle, the Fernando Coimbra-directed film that Mark Gordon is producing. Flanagan will play Sgt. McGregor, and the film is written by Chris Roessner, based on his experiences as a machine gunner in Iraq’s Sunni triangle.

Hoult plays a soldier who’s part of a mission to repair broken water systems in a dangerous and unstable Iraqi village. With the local villagers resisting the presence of American soldiers, the unit must convince them that they’re here to help, not cause more problems, in order to save the town and get out alive. Gordon is producing through the Mark Gordon Company with Justin Nappi and his Treehouse Pictures and Ben Pugh of 42. Treehouse is financing the film. Brian Kavanaugh-Jones is executive producing.

U.S. rights are held by the film’s producers, with international sales handled by Voltage Pictures, who’ve been selling it at AFM. Filming is just getting underway.

Flanagan also co-starred in Braveheart, Smokin’ Aces and Sin City.