The Western Xia or the Xi Xia, officially the Great Xia, also known as the Tangut Empire, and known as Mi-nyak to the Tanguts and Tibetans, was a Tangut-led imperial dynasty of China that existed from 1038 to 1227. From Wikipedia
Recent excavations show frontier lines prioritized regulating trade and movement instead of stopping invasions.