We report the chlorination of pyrryl-2-glyoxylic acid and derivatives and hence a synthesis of O,O′-dimethylpyoluteorin and 5-dechloro-O,O′-dimethylpyoluteorin. The different behavior of these compounds on demethylation is described and explained.