
| Slanec | |
| Other Name: | Salzburg |
| Settlement Type: | Municipality |
| Subdivision Type1: | Region |
| Subdivision Type2: | District |
| Subdivision Name2: | Košice-okolie District |
| Pushpin Map: | Slovakia Košice Region#Slovakia |
| Pushpin Relief: | 1 |
| Pushpin Map Caption: | Location of Slanec in the Košice Region##Location of Slanec in Slovakia |
| Coordinates: | 48.64°N 21.48°W |
| Established Title: | First mentioned |
| Established Date: | 1230 |
| Elevation Footnotes: | [1] |
| Elevation M: | 343 |
| Postal Code Type: | Postal code |
| Postal Code: | 441 7 |
| Area Code: | +421 55 |
| Registration Plate: | KS |
Slanec (de|Salzburg; hu|Nagyszalánc; la|Castrum Salis) 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).