Thoreau writing belongs to the Civil Disobedience pamphlet (Civil Disobedience, 1849), where he expressed convictions for which in July 1846 he had to spend a night in prison, because he refused to pay taxes to the government, whose actions did not approve. Many years later, this essay had a great influence on Gandhi in his speech against British rule in India.
Book Walden, and On The Duty Of Civil Disobedience (by Henry David Thoreau)