In 934, a royal lineage from Bang Pan (present-day in Phran Kratai, Kamphaeng Phet), Phra Maha Buddha Sakorn (พระมหาพุทธสาคร), founded a new city named Sangkaburi (สังขะบุรี) on the south bank of Lopburi River near the present-day Wat Thammikarat. Sakorn ruled the city until he died in 964. His son, Kothrabong (โคตรบอง), took over the throne but lost power to a usurper, Kreak (แกรก), a commoner from Lavo, who was then crowned as the new ruler named Sinthapomarin (สินธพอมรินทร์). After that, the throne was despoiled by Narai (not to be confused with King Narai reigning from 1656 to 88), the son of King Chadachota from Lavo Kingdom, who was of the Suphannabhum lineage. Narai renamed the city Ayodhya () and eventually set it Lavo's new capital. The former capital was then renamed Lopburi. The majority of Ayodhya's inhabitants are supposed to have migrated from Dvaravati's Ayojjhapura following its fall in 946, as well as residents from Lavo's Lavapura who fled after the city was destroyed by Angkor in 1001.
In 934, a royal lineage from Bang Pan (present-day in Phran Kratai, Kamphaeng Phet), Phra Maha Buddha Sakorn (พระมหาพุทธสาคร), founded a new city named Sangkaburi (สังขะบุรี) on the south bank of Lopburi River near the present-day Wat Thammikarat. Sakorn ruled the city until he died in 964. His son Kothrabong (โคตรบอง), took over the throne but lost power to a usurper, Kreak (แกรก), a commoner from Lavo, who was then crowned as the new ruler named Sinthapomarin (สินธพอมรินทร์). After that, the throne was despoiled by Narai (not to be confused with King Narai reigning from 1656 to 88), the son of King Chadachota from Lavo Kingdom, who was of the Suphannabhum lineage. Narai renamed the city Ayodhya () and eventually set it Lavo's new capital. The former capital was then renamed Lopburi. The majority of Ayodhya's inhabitants are supposed to have migrated from Dvaravati's Ayojjhapura following its fall in 946, as well as residents from Lavo's Lavapura who fled after the city was destroyed by Angkor in 1001.