In 618, the Sui Dynasty fell. To escape the conflict, Xuanzang and his brother went to Chang'an, the new capital of the Tang Dynasty. He was not satisfied there so he travelled on to Chengdu in Sichuan. There, he joined the monastery and was made a monk at the age of 20. He returned Chang'an after a few years.