A tandem strategy for the synthesis of 7,12-dihydro-1,3,6,7,12-pentaazapleiadenes and 4-(2-aminophenoxy)pyrido[4,3-d]pyrimidin-5(6H)-ones from readily available starting materials has been developed.