The Wurms Of Blearmouth by Steven Erikson

Two erudite but amoral necromancers and their long-suffering servant arrive in a decaying coastal village plagued by ancient, subterranean wurms; as the outsiders pursue arcane curiosities and experiments, they unpick local superstitions, hidden cruelties, and a fragile social order, with black humor and escalating violence exposing the monstrous beneath everyday life and the costs of curiosity gone unchecked.

Purchase from Bookshop.org