The first evidence of inhabitance can be traced back to the end of the Paleolithic era. The first written reference to the Hungarian town of Kassa (as the royal village – "Villa Cassa") comes from 1230. After the Mongol invasion in 1241, King Béla IV of Hungary invited German colonists to fill the gaps in population. The city was in the historic Abauj County of the Kingdom of Hungary.