He was protesting against the expansion of slavery.
A lot of Americans protested against slavery. I did not know that Thoreau did, but this would not be surprising.