3-Aminopyrazoles required for the synthesis of pyrazolo[1,5-a]pyrimidines were obtained by the reaction of enaminonitriles with hydrazine hydrate. The resulting aminopyrazoles are reacted with formylated acetophenones under reflux at [Formula: see text] assisted by KHSO[Formula: see text] in aqueous media to form regioselectively 3,7-diarylpyrazolo[1,5-a]pyrimidines and 3,6-diarylpyrazolo[1,5-a]pyrimidine-7-amines. X-ray crystallography of selected compounds 5b and 7i further confirmed the regioselective formation of these products.