and Yuyao). In the early years of the Western Han dynasty, Kuaiji Commandery belonged to the Kingdom of Jing and Wu. After the Seven Kingdoms was settled, Kuaiji Commandery was restored. In 589 AD (Sui Kai Huang nine years), the counties were merged under the Wu kingdom. Tang and Song dynasty Since the Tang dynasty, Ningbo has been an important commercial port. Arab traders lived in Ningbo during the Song dynasty when it was known as Mingzhou or Siming, since the ocean-going trade passages took precedence over land trade during this time. It was a well known center of ocean-going commerce with the foreign world. These merchants did not intermingle with native Chinese, instead practicing their own customs and religion and inhabiting ghettos. They did not try to proselytize Islam to the Chinese. There was also a large Jewish community in Ningbo, as evidenced by the fact that, after a major flood destroyed Torah scrolls in Kaifeng in 1642, a replacement was sent to the Kaifeng Jews by the Jews at Ningbo. Ming dynasty The city of Ningbo was known in Europe for a long time under the name of Liampó. This was the usual spelling used, e.g. in the standard Portuguese history, João de Barros's Décadas da Ásia, although Barros explained that Liampó was a Portuguese "corruption" of the more correct Nimpó. The spelling Liampó is also attested to in the Peregrination (Peregrinação) by Fernão Mendes Pinto, a (so-called) autobiography written in Portuguese during the 16th century. For the mid-16th-century Portuguese, the nearby promontory, which they called the cape of Liampó after the nearby "illustrious city", was the easternmost known point of the mainland Asia. The Portuguese began trading in Ningbo around 1522. By 1542, the Portuguese had a sizable community in Ningbo (or, more likely, on nearby small islands such as Shuangyu). Portuguese activities from their Ningbo base included pillaging and attacking multiple Chinese port cities around Ningbo for plunder and spoil. They also enslaved people during their raids. The Portuguese were ousted from the Ningbo area in 1548. Qing dynasty Ningbo was one of the five Chinese treaty ports opened by the Treaty of Nanjing (signed in 1842) at the end of the First Opium War between Britain and China. During the war, British forces briefly took possession of the walled city of Ningbo after storming the fortified town of Zhenhai at the mouth of the Yong