The opportunity of the yam
Nepal's relationship with its northern neighbour, Tibet, was cemented when the Nepali princess Bhrikuti Devi married the king of Tibet, Songtsan Gampo, in the seventh century AD and earned the divine title White Tara. Thereafter, hundreds of Nepali artisans visited Tibet to build monasteries; and trade in bronze, gold and silver idols of Tara and other deities became one of the cornerstones of commerce between the two countries. For Nepal, Tibet was a more immediate entity than China, for thinking of distant Shanghai as a city with which to do business was farfetched.
During the mid-16th century, a treaty was signed between Nepal and Tibet that made Kathmandu the sole entrepot for the latter. In a fairly short timeframe, this allowed the ethnic Newar merchants of the Kathmandu Valley to build a roaring business with Tibet, trading with goods to and from India. However, defeat to a Chinese expedition force in 1792 changed Nepal's fortunes till trade was restored in 1856, when Nepal invaded Tibet and forced the trade routes to re-open. The Newar merchants again began to set up businesses in Lhasa, where they could trade goods from India and other parts of the world for gold and silver.