Golovec is a forested hill southeast of the center of Ljubljana, Slovenia. Its highest peak is Mazovnik (450 m); other peaks include the slightly lower Črni hrib (440/442 m), Luknje (431/438 m), Golovec (413 m), Zeleni hrib (354 m), Hruševski hrib (408 m), and Bizoviški hrib (363 m).
Golovec represents a continuation of Rožnik and Grajski grič, and is an integral part of the Lithic anticline or Sava Hills, which continues in the ridge to the east with the village of Orle or Hrastovec (408 m) south of it, Molnik (582 m) and Pugled (615 m), while further north lie Dobrunjski hrib (429 m), Breznik (384 m) and Sveti Urh (342 m) and Zadvorski hrib (401 m) and in the valley the smaller but relatively steep hill Marenček (415 m).
Golovec covers 650 hectares, of which 635 (or 675) are covered by forest (red pine and spruce, with beech in the central part), which stretches from Gruber Canal to the city, marked by the motorway ring around Ljubljana. It is protected as a special purpose forest area. It is considered a recreational and walking area for the people of Ljubljana - the Golovec City Forest, but it has not been declared a landscape park. In the flat part of the Ljubljana polje, there are few forests due to urbanization and agriculture.
The Ljubljana Golovec District is named after the hill. The two-tube, three-lane highway Tunnel Golovec, opened in 1999, runs through it.
Golovec is home to the Golovec Astronomical and Geophysical Observatory (AGO), which was expanded in 1959.