The enzyme myeloperoxidase generates significant amounts of hypochlorous acid (HOCl) at sites of inflammation to inflict oxidative damage upon invading pathogens. However, excessive production of this potent oxidant is associated with numerous inflammatory diseases. Recent kinetic measurements suggest that the endogenous antioxidant carnosine is an effective HOCl scavenger. On the basis of computational modeling, we suggest a possible mechanism for this antioxidant activity. We find that a unique structural relationship between three adjacent functional groups (imidazole, carboxylic acid, and terminal amine) enables an intramolecular chlorine transfer to occur. In particular, two sequential proton shifts are coupled with a Cl+ shift converting the kinetically favored product (chlorinated at the imidazole nitrogen) into the thermodynamically favored product (chlorinated at the terminal amine) effectively trapping the chlorine. We proceed to design systems that share similar structural features to those of carnosine but with even greater HOCl-scavenging capabilities.