An insoluble Merrifield type resin having 4-aminopyridine units is a suitable and reusable heterogeneous catalyst for the Baylis-Hillman coupling of aromatic aldehydes and alpha,beta-unsaturated ketones.