Sodium fluoride was determined to be an inexpensive, mild and efficient catalyst in the synthesis of 2-iminoquinazoline and spiro indolinepyrimido[4,5-d]pyrimidine derivatives via a three component Biginelli-like reaction of cyclo-beta-diketones, aromatic aldehydes or isatin derivatives with guanidine hydrochloride.