The Mayor of Casterbridge is a novel written by Thomas Hardy, first published in 1886, that explores themes of fate, social change, and personal responsibility through the story of Michael Henchard, a man who rises to prominence only to face the consequences of his past actions. The narrative examines the complexities of human relationships and the impact of societal expectations within a realist framework, reflecting the struggles of individuals against the forces of fate and environment.