Methods for solid phase and combinatorial synthesis using a resin activation/capture approach are provided. In particular, methods for the production of dihydropyridones, N-acyidihydropyridones, tetrahydropyridones, pyridines, aminopyridines, N-acyltetrahydropyridines and tetrahydropyridines compounds and libraries containing such compounds are provided. Methods for screening the libraries and compounds and pharmaceutical compositions containing compounds prepared by the methods are provided.