Xia dynasty
The Xixia or Western Xia dynasty controlled much of Gansu as well as Ningxia.