Faizabad's history is deeply connected to the ancient city of Ayodhya, but its emergence as a distinct urban center began in the early 18th century. In 1722, Nawab Saadat Ali Khan I was appointed as the Subahdar (governor) of Awadh by the Mughal Emperor. He established a cantonment on the banks of the Ghaghara River, which soon developed into the bustling settlement of Faizabad. It served as the first capital of the Nawabs of Awadh.
The city reached its zenith during the reign of Nawab Shuja-ud-Daula (1754–1775). He transformed Faizabad into a thriving metropolis, constructing wide roads, grand palaces, bustling markets, and beautiful gardens like the Gulab Bari. The city became a center for commerce, art, and poetry, attracting scholars and merchants from across the subcontinent. Following Shuja-ud-Daula's death in 1775, his successor, Asaf-ud-Daula, moved the capital of Awadh to Lucknow, leading to a gradual decline in Faizabad's political prominence.
Faizabad played a significant role in the Indian Rebellion of 1857. Local leaders and citizens fiercely resisted the British East India Company, with prominent figures like Maulvi Ahmadullah Shah leading campaigns against colonial forces. Following the suppression of the rebellion, the city was firmly integrated into the British United Provinces.
In the post-independence era, Faizabad functioned as the district headquarters and a quiet regional center. The modern history of the city took a major turn in 2018, when the Uttar Pradesh government merged the Faizabad municipality with Ayodhya to create a new municipal corporation, officially renaming the district from Faizabad to Ayodhya. In 2021, the historic Faizabad Junction railway station was also renamed to Ayodhya Cantt.
