Photoresponsive porphyrin-imprinted polymers prepared using a novel functional monomer having diaminopyridine and azobenzene moieties.