Several substituted 2- and 4-hydroxyacetophenones are linked to Wang resin via a modified Mitsunobu protocol. These resin-bound acetophenones are condensed with aromatic aldehydes, and the resulting chalcones 5 are used for the synthesis of 2-dialkylamino- (9a-d) and 2-alkylamino-4,6-diarylpyridines (11a-f), and 2-alkyl-4,6-diaryl- (14a) and 2,4,6-triarylpyrimidines (14b,c) in a manner suitable for combinatorial applications.