Ayodhya served as Oudh/first Awadh's capital before Faizabad. When the Mughal Empire began to fall apart (after the death of Emperor Aurangazeb), one of the regions where rulers started to solidify their own power was Awadh.