Libraries of loop-containing peptides (such as the one shown schematically) can be prepared from bis-N-alkylated peptides by ring-closing metathesis. In a general solid-phase procedure the peptides are accessible by site-specific N-alkylation. Since the amino acid side chains are not involved in cyclization, they remain available for interaction with, for example, a receptor.