Answer
At the age of thirteen, Xuanzang was ordained as a Śrāmaṇera, the lowest level of monk. This was a traditional age for boys to begin their religious education and training, and it was common for them to live in monasteries for many years before being fully ordained as monks.