A divergent synthesis of quinazolin-4-ones and 1, 4-benzodiazepin-5-ones by Pd (II)- catalyzed intramolecular amination of tosylated N-allyl-anthranilamides is described. Both kinds of products were available in high yields depending on the different reaction conditions.