HBO and the BBC have teamed to adapt J.K. Rowling’s novel “The Casual Vacancy” as a three-hour miniseries.

Sarah Phelps (“EastEnders”) has penned the adaptation of the book about a seemingly idyllic English village where various factions are at war: rich vs. poor, teenagers vs. parents, wives vs. husbands etc.

Jonny Campbell (“In the Flesh”) is set to direct with Ruth Kenley-Letts (“The Hour”) producing. Production will begin this summer in south west England.

Rowling (pictured) is exec producing with Neil Blair, her partner in Bronte Film and Television. Paul Trijbits (“Saving Mr. Banks”) and Rick Senat also exec produce.

BBC commissioned the project from the creator of the “Harry Potter” franchise shortly after its publication in 2012.