On July 24 or July 25, 1846, Thoreau<span> ran into the local tax collector, Sam Staples, who asked him to pay six years of delinquent poll taxes. </span>Thoreau<span> refused because of his opposition to the Mexican–American War and slavery, and he spent a night in </span>jail <span>because of this refusal.</span>