The first settlements in the territory of what would later become Andorra began in the Ice Age, but there were no large groups inhabiting this territory until after the retreat of glaciers. Archeological excavations demonstrate that from 3500–2000 BC small groups of people lived in valleys near the Rio Valira and in caves in what would later become known as Andorra. Later, groups of people migrated to the lower mountain levels, where they began to live in small groups or villages. It is a scientifically proven fact that people in those settlements used bronze tools. Worshipping the spirits of nature, forests and lakes, ancient Andorrans constructed megaliths and dolmens. Iberian coins were also found in the territory. It is believed that the name Andorra comes either from Iberian words “ando” (highest) and “ore” (iron), or from Celtic words “an” (blow) and “dor” (wind).
The war between Rome and Carthage for control over the Iberian Peninsula began in 220 BC. In 219–218 BC Carthaginian troops under the direction of Hannibal marched through the Pyrenees to Rome. The second Punic war lasted from 218 to 201 BC. In the resulting victory over Carthage, Romans took possession of Iberia.