[4] Located on the coast of the East China Sea and the southern bank of Hangzhou Bay (which connects it to Hang Prefecture and the Grand Canal), Ming Prefecture was one of the most important international ports during the Tang (618–907), Wuyue (907–978) and Song (960–1279) dynasties.
Cargo ships to and from Japan, Silla (57 BC – 935 AD), Goryeo (918–1392), and Liao (907–1125) frequented this prefecture.
In 744, while waiting for the typhoon to pass before embarking on his third journey to Japan, the Buddhist monk Jianzhen stayed at the Temple of King Ashoka.
In 752, three ships carrying Japanese diplomats from Empress Kōken's court arrived in Ming Prefecture.
In 804, a Japanese ship carrying 127 people from Emperor Kanmu's court arrived in Ming Prefecture, the Buddhist monk Saichō among them.