Slanec (; ; ) is a village and municipality in Koà ¡ice-okolie District in the Koà ¡ice Region of eastern Slovakia.
In historical records the village was first mentioned in 1230 (Castrum Salis) as an important fortress. In 1270 King Stephen V of Hungary gave the castle to Master Reinhold. The new lords of Slanec supported King Pà Âemysl Otakar II against King Ladislav in the conquest of the Bohemian throne. King Ladislav conquered Slanec in 1281. In 1299 the castle passed to the Szalanczyi noble family and, successively, to landowners by the surnames of Lossonczy and Forgách. In 1649, it was besieged by the rebel condottiere György Rákoczi.
The village has a railway station.
It has a population ofÃÂ people (31 December ).