The first evidence of human stationary presence in the current city is the settlement of Ametzagaña, between South Intxaurrondo and Astigarraga. The unearthed remains, such as carved stone used as knives to cut animal skin, date from 24,000 to 22,000 BC. The open-air findings of the Upper Paleolithic have revealed that the settlers were hunters and Homo Sapiens, besides pointing to a much colder climate at the time.
Ancient Age
San Sebastián is thought to have been in the territory of the Varduli in Roman times. 10 km east of the current city lay the Basque Roman town of Oiasso (Irun), which was for long time wrongly identified with San Sebastián.
Middle Age
After a long period of silence in evidence, in 1014 the monastery of St. Sebastián with its apple orchards (for cider), located in the term of Hernani, is donated to the Abbey of Leire by Sancho III of Pamplona. By 1181, the city is chartered (given fuero) by king Sancho VI of Pamplona on the site of Izurum, having jurisdiction over all the territory between the rivers Oria and Bidasoa.
In 1200, the city was conquered by Castile, whose king Alfonso VIII, confirmed its charter (fuero), but the Kingdom of Navarre was deprived of its main direct access out to the sea. Perhaps as soon as 1204 (or earlier), the city nucleus at the foot of Urgull started to be populated with Gascon-speaking colonizers from Bayonne and beyond, who left an important imprint in the city's identity in the centuries to come.
In 1265, the use of the city as a seaport is granted to Navarre as part of a wedding pact. The large quantity of Gascons inhabiting the town favoured the development of trade with other European ports and Gascony. The city steered clear of the destructive War of the Bands in Gipuzkoa, the only town in doing so in that territory. In fact,