He was inspired to paint the slave ship after the publishing of the book named the history of abolishment of slave trade. It was a book by Thomas Clarkson.
Answer:
He wanted to prevent political parties, because he knew that eventually this would lead to a divided nation which would mean the concept of "peace" and "freedom" in america would slowly break apart.