of the oldest countries in Europe , its territory has been continuously settled, invaded and fought over since prehistoric times. The territory was first inhabited by pre-Roman and Celtic peoples (at the time of the first large-scale Roman invasions in Western Iberia, they preponderantly were the Lusitanians, the Gallaecians, the Celtici and, to some extent, the Conii). These peoples had commercial and some cultural contact with Phoenicians, ancient Greeks and Carthaginians. It was later ruled by the Romans, followed by the invasions of Germanic peoples (most prominently, the Suebi and the Visigoths) together with the Alans, and later the Moors, who were eventually expelled during the Reconquista. Founded first as a county within the Kingdom of León in 868, the country officially gained its independence as the Kingdom of Portugal with the Treaty of Zamora in 1143.