After a heated bidding war, TriStar Pictures has landed the film rights to Heather Anne Thompson’s “Blood in the Water,” which chronicles the 1971 Attica Prison riot.

Sources say several studios were in the mix for the property which hit shelves Aug. 23. Sony will handle distribution.

The story chronicles the infamous prison uprising that involved nearly 1,300 prisons. The four-day event involved inmates holding guards and civilian employees hostage as they negotiated with state officials for improved living conditions. In the end, armed state troopers stormed the facility, leaving 39 men killed and hundreds injured.

Amy Pascal and Rachel O’Connor are producing.

Joe Shrapnel and Anna Waterhouse will write the script. No director is attached at this time.

The writing duo’s most recent project “The Aftermath” was acquired by Fox Searchlight and will star Alexander Skarsgard, Keira Knightley and Jason Clarke. They’ve worked on several high-profile projects recently, including Sony’s “The Grey Man”, which has Christopher McQuarrie attached to direct and Charlize Theron set to star. Also, Warner Bros.’ sequel Tom Cruise’s “Edge of Tomorrow 2.”

Shrapnel and Waterhouse are repped by CAA, Grandview and Marks Law Group.

CAA repped the book in the deal.