Songtsen Gampo unified the Tibetan plateau in the first half of the seventh century and made Lhasa, then a marshy valley site, his capital. Tibetan tradition credits him with founding the Jokhang temple to house a revered image of the Buddha, the Jowo Shakyamuni, brought to the city as part of a royal marriage, and the temple has remained the most sacred site in Tibetan Buddhism ever since. The Barkhor, the circular route that pilgrims walk clockwise around the Jokhang, still draws worshippers prostrating the full circuit, some of them arriving after journeys of weeks across the plateau.
The dynasty Songtsen Gampo founded oversaw Tibet's adoption of Buddhism as a state religion, layered over the older Bon tradition, and Lhasa grew as the plateau's religious center through the centuries that followed, eventually becoming closely associated with the Gelug school, the "Yellow Hat" tradition that would come to dominate Tibetan religious and political life. The city's name, commonly read as "place of the gods," reflects the density of temples and monasteries that grew up around the Jokhang over the following thousand years.
Lhasa's rise as Tibet's preeminent religious center deepened in the early fifteenth century, when the reformer Tsongkhapa and his disciples founded three great Gelug monasteries just outside the city, Ganden, Drepung and Sera, known collectively as the Three Great Seats. At their height they housed tens of thousands of monks between them and functioned as the tradition's main centers of monastic study, feeding scholars and administrators into the religious government that would later be centered on the Potala.