The trade areas in the Old Quarter begun to form as early as during the Lý and Trần dynasties in the 11th and 13th century. Back then, many people started moving from the city surroundings to the part of Hanoi that is now known as the Old Quarter.