A polymer (e.g. a peptide) is produced by polymerizing monomers in the presence of a template, particularly a biologically active molecule or sample. The polymer is extracted and a soluble (preferably water-soluble) fraction is derived which specifically binds the template. Thus it can have complementary activity (e.g. biological). Applications include therapy, detection systems and separation systems.