Conjugateaddition reaction of various nucleophiles across the vinyl group of 2-chloro-4-vinylpyrimidine, 2-chloro-4-(1-phenylvinyl)pyrimidine and 2-chloro-4-vinyl-quinazoline provides the corresponding 2-chloro-4-(2-substituted ethyl)pyrimidines and 2-chloro-4-(2-substituted ethyl)quinazolines. Treatment of these products, without isolation, with N-methylpiperazine results in nucleophilic displacement