During the Tang and the Song dynasties, its people were allowed to settle in the ... it was known as the Xia Kingdom. In 1227, Western Xia was conquered by Yuan emperor Tai Zu (Genghis Khan).