Trichloroacetic acid is an analogue of acetic acid where chlorine atoms replace hydrogen atoms in the methyl group. It is prepared by reacting chlorine with acetic acid in the presence of a catalyst. Trichloroacetic acid is widely used in biochemistry to precipitate macromolecules and was previously used as an herbicide. Its discovery in 1839 contributed to the evolving theory of organic radicals and valences, starting a dispute between its discoverer and another chemist.