Harper Lee's upbringing in the small town of Monroeville, Alabama, greatly influenced the setting and themes of "To Kill a Mockingbird." The complex racial dynamics and social issues she witnessed in her hometown served as a foundation for the novel's exploration of racism, justice, and morality.