The Kingdom of Galicia (, or "Galiza"; ; ; ) was a political entity located in southwestern Europe, which at its territorial zenith occupied the entire northwest of the Iberian Peninsula. It was founded by the Suebic king Hermeric in 409, with its capital established in Braga. It was the first kingdom which adopted Catholicism officially. In 449 it minted its own currency. In 585, it became a part of the Visigothic Kingdom. In the 8th century, Galicia became a part of the newly founded Christian Kingdom of Asturias, which later became the Kingdom of León, while occasionally achieving independence under the authority of its own kings. Compostela became capital of Galicia in the 11th century, while the independence of Portugal (1128) determined its southern boundary. The accession of Castilian King Ferdinand III to the Leonese kingdom in 1230 brought Galicia under the control of the Crown of Castile.