Disulfiram inhibits the enzyme aldehyde dehydrogenase, which plays a crucial role in the metabolism of alcohol. When alcohol is consumed, it is metabolized in the liver to acetaldehyde, a toxic compound, which is then converted to acetic acid by this enzyme. By inhibiting aldehyde dehydrogenase, disulfiram causes an accumulation of acetaldehyde, leading to unpleasant effects such as flushing, nausea, vomiting, and palpitations. This reaction is intended to deter individuals from consuming alcohol.