Jefferson's writings and actions reflect his ambivalence towards slavery. In his book "Notes on the State of Virginia," published in 1785, he argued that slavery was a necessary evil and defended the institution based on the supposed inferiority of African Americans. However, he also expressed his belief in the equality of all men, regardless of race or social status.
Jefferson proposed various schemes for the gradual emancipation and resettlement of slaves, but he never took concrete steps to implement them. He feared the social and economic consequences of emancipation and the potential backlash from slaveholders in the South.
In 1808, Congress passed a law prohibiting the importation of new slaves from Africa. Jefferson signed this law, but it had limited impact as domestic slave trade continued within the United States.
Jefferson's legacy on slavery remains controversial. While he criticized the institution and promoted the ideals of equality, his failure to emancipate his own slaves and his defense of slavery in some of his writings have been a source of criticism. His complex and contradictory views reflect the ambiguities and tensions surrounding slavery in the early United States.