The key intermediate octahydroquinazoline (1) was obtained in one pot synthesis by a modification of the Biginelli reaction. Compound 1 was allowed to react with phenacyl bromide and bromomalononitrile to furnish thiazolo[2,3-b]quinazoline 3 and 12, respectively. Interaction of compound 12 with formamide, formic acid and phenyl isothiocyanate yielded the corresponding pyrimidino[4',5':4.5]thiazolo[2,3-b] quinazolines 13, 14 and 17, respectively. The structure of the synthesized compounds were elucidated by elemental analyses and spectroscopic analyses. Some of the prepared compounds were tested for their antifungal activity in comparison with tioconazole as a reference fungicide.