Then in the 7th century Khan Kubrat ruler of the Unogundurs established Old Great Bolgary there before his heir Batbayan surrendered it to the Khazars.