Human ancestors reached the Iberian peninsula more than a million years ago. At Atapuerca, near Burgos, archaeologists have found fossils over 800,000 years old, among the oldest in western Europe, and a pit full of the bones of early Neanderthals. Neanderthals lived in Iberia until around 40,000 years ago or a little later, by which time modern humans had arrived.
Ice Age hunters painted bison, horses and deer on the ceiling of the cave of Altamira, in Cantabria; the paintings were made over a long span, from about 36,000 to 13,000 years ago. When they were found in 1879, many experts refused to believe they were so old. Farming reached the peninsula around 5500 BCE, and in the Bronze Age the El Argar culture of the south-east built fortified hilltop towns.
In the first millennium BCE, Iberians lived along the east and south coasts and Celtic-speaking peoples in the centre, north and west; where they met, historians speak of Celtiberians. In the south-west, Tartessos grew rich on silver and copper. Phoenicians from Tyre founded Gadir, today’s Cádiz, by tradition around 1100 BCE, though archaeology points to the 9th or 8th century BCE. Greeks founded Emporion, today’s Empúries, around 575 BCE.

Carthage, itself a Phoenician city in North Africa, took over the Phoenician settlements. After losing the First Punic War to Rome, the Barcid family built a Carthaginian domain in southern Iberia, founding Carthago Nova, today’s Cartagena, around 227 BCE. In 219 BCE Hannibal (Carthaginian general) besieged Saguntum, an ally of Rome, and in 218 BCE he marched with an army and elephants towards Italy, starting the Second Punic War.