Hernani is a town and municipality located in the province of Gipuzkoa, Basque Autonomous Community, Spain. The town sits on the left bank of the Urumea river. It is located at a distance of 9.2 km from San Sebastián. The municipality of Hernani occupies an area of approximately 40 square kilometres and is bordered by San Sebastián, Astigarraga, Arano, Elduayen, Errenteria, Lasarte-Oria and Urnieta.