A novel and general protocol towards the synthesis of highly functionalized ortho-amido oxobenzoxazine frameworks via ruthenium catalyzed intermolecular C–H amidation using sulfonyl azides as amidation components has been developed for the first time.