The present invention relates to a method for synthesizing templated molecules. In one aspect of the invention, the templated molecules are linked to the template which templated the synthesis thereof. The intion allows the generation of libraries which can be screened for e.g. therapeutic activity.