The first archaeological trace of a human in the area is about five thousand years old. The Sarmatians invaded the area in the first century B.C.; since then the area has been continuously inhabited by a variety of cultures. János Hornyik, the first town historian, believed that the settlement known as "Partiskum" of the Sarmatian Jazygian was here. Contemporary consensus among historians is that it is more likely permanent settlement occurred only after the Hungarian conquest. At the beginning of the 13th century, there were seven villages in the area, each with a population of 200–300 formed near the village church, a typical rural pattern. They were all destroyed by the Mongol Invasion. Some of the villages revived at the time of the Cumanians' colonization.