The antimalarial drug chloroquine binds to gallium proto-porphyrin-IX in methanol and in the solid state and represents a unique drug–heme model.