The correct answer to this open question is the following.
Although you did not specify if you are referring to international literature, Europe, or America, we are going to assume that you are referring to the United States.
However, trying to help you with a good answer to this general question, we can say the following.
The writer’s novel that was based on the themes of social injustice and inhumanity is "Uncle Tom's Cabin," written by Harriet Beecher Stowe in 1852. This American author analyzed and critiqued the institution of slavery in the southern states, where African slaves were exploited working for long hours under the sun, growing the crops that had to be traded and exported to Europe.
Beecher's novel created a huge impact in the American society of the North, strengthening the demand for the abolition of slavery, and some historians say that "Uncle's Tom Cabin," accelerated the beginning of the American Civil War.