This vast complex of 22 subtemples and affiliated monasteries ( down from about 60 during the Edo period ) was built , burned down , and rebuilt between the 14th and 17th centuries .
The complex was burned down in the year 1523 .