A poly(imidazolylporphyrin metal complex) having a mercapto group at one end and a quinonyl group at the other end, which is represented by a general formula (4): wherein each of R1, M, R2, X and Im including R3 has the same meaning as those defined in claim 1 , respectively; and n represents an integer of 0 or more. 11.