A modular solid-phase synthesis of functionalized azacycles is described. The approach is based on a ring-closing metathesis to form heterocycles of different ring sizes. Furthermore, the epoxidation of the primarily formed cyclic double bond has been investigated.