Thoreau in nonviolent defiance, refused to pay taxes to the governmentof the United States, which was engaged in the Mexican War without a declaration of war or congressional approval. This action caused him to be imprisoned.