An imidazole-bearing zinc porphyrin (PZn) has been designed for the selective detection of Au(3+), and the porphyrin and gold complex (PZn·Au(3+)) can additionally be used to identify gold-binding functional groups such as cysteine residues and other mercaptans.