Phenolphthalein can be synthesized by condensation of phthalic anhydride with two equivalents of phenol under acidic conditions. It was discovered in 1871 by Adolf von Baeyer.
The reaction can also be catalyzed by a mixture of zinc chloride and thionyl chloride.