Girona is a city in the northeast of the Autonomous Community of Catalonia in Spain, at the confluence of the rivers Ter, Onyar, Galligants, and Güell . It is the capital of the province of the same name and of the comarca of the Gironès.The first historical inhabitants in the region were Iberians; Girona is the ancient Gerunda, a city of the Ausetani. Later, the Romans built a citadel there, which was given the name of Gerunda. The Visigoths ruled in Girona until it was conquered by the Moors. Finally, Charlemagne reconquered it in 785 and made it one of the fourteen original countships of Catalonia. Thus it was wrested temporarily from the Moors, who were driven out finally in 1015. Wilfred the Hairy incorporated Girona into the countship of Barcelona in 878. Alfonso I of Aragón declared Girona to be a city in the 11th century.