The center of the foreign quarter was the Western Market, around which clustered Chang'an's sizable foreign population — sometimes estimated at onethird of the city's total residents built religious institutions dedicated to the religions of their homelands.