Cegama (also spelled Zegama) is a town and municipality in the Goierri region of the province of Gipuzkoa, in the autonomous community of the Basque Country in northern Spain.
The town is popularly known as "the shadow of Aizkorri", a reference to its position beneath the Aizkorri massif, the highest mountain range in Gipuzkoa. This setting in the Basque highlands shapes the town's identity and its traditional association with the surrounding mountains.
Cegama lies within the Goierri, an inland district of Gipuzkoa made up of a group of municipalities in the province's interior. As a municipality, it covers both the town itself and the surrounding rural area.