 Some sources claim that the very name of the town is of Czech origin, as in the documents from the 13th century, it was spelled "Czechou, Cechou", and "Cehiov".According to Jan Długosz, among first residents of the settlements were Germans, captured by King Bolesław Chrobry during his wars with the Holy Roman Empire.In 1280, Princess Kinga of Poland met here with Prince of Kraków, Leszek Czarny to discuss a conflict among Piast princes.