Eibar (, ) is a city and municipality within the province of Gipuzkoa, in the Basque Country of Spain. It is the head town of Debabarrena, one of the eskualde / comarca of Gipuzkoa. Eibar has 27,138 inhabitants (Eustat, 2018). Its chief industry is metal manufacturing, and has been known since the 16th century for the manufacture of armaments, particularly finely engraved small arms. It was also the home of Serveta scooters. It is home to the SD Eibar football team. Geography Eibar lies at an altitude of 121m above sea level, in the west of the province of Gipuzkoa, right next to Biscay. Eibar has an oceanic climate. The town lies in a narrow valley in a mountainous area, the highest mountains are between 700 and 800 metres high. Eibar is traversed by river Ego, which is a tributary of the Deba. Apart from the urban area, the municipality consists of five rural neighbourhoods: Otaola-Kinarraga, Aginaga, Arrate, Mandiola and Gorosta. History The city was chartered by Alfonso XI of Castile in 1346, receiving the name of Villanueva de San Andrés de Heybar. The feudal families that dominated the territory engaged in the War of the Bands. Eibar, like the rest of settlements in the valley, had an industry based on finery forges and the manufacture of arms. In 1766, Eibar got engaged in a social revolt known as the Machinada, and years later, in 1794, it was attacked by the French, who destroyed the town. In the 19th century, industrialisation transformed the production systems in the city and was accompanied by an important social movement. In the Carlist Wars, Eibar sided with the Liberals. Labour movement and socialism became particularly strong in Eibar. In 1931, Eibar was the first city in Spain to proclaim the Second Spanish Republic; in recognition it was given the title of "Very Exemplary City". In the Spanish Civil War, Eibar was practically destroyed by Italian bombers aiding the Fascist. The rebuilding brought important industrial development and a demographic increase, as Eibar reached nearly 40,000 inhabitants in a few years. Due to the lack of space for enlargements, several factories moved to Durangaldea and Álava. The industrial crisis in the 1980s also made Eibar lose a great part of its population. At the beginning of the 21st century, Eibar's economy is based on industry and services. Main sights Church of San Andrés, built during the