On March 27, 630, the Xueyantuo allied with the Chinese to defeat the Eastern Qaghanate in the Yin Mountains. Illig Qaghan escaped, but was handed over to the Chinese by his subordinate qaghan on May 2.