This article deals with the prehistory of Sri Lanka since human habitation and covers the Palaeolithic, Mesolithic and early Iron Age until the ancient history of Sri Lanka. There is evidence of Paleolithic people in Sri Lanka from about 300,000 BP and possibly even as early as 500,000 BP. There is strong evidence of prehistoric settlements in Sri Lanka by about 125,000 BP. Evidence of a transition between the Mesolithic and the Iron Age is scant. Fluctuations in sea level led to Sri Lanka being linked to the Indian subcontinent from time to time over the past million years. The last such link occurred about 5000 BC.
Findings at Iranamadu indicate that there were Paleolithic people in Sri Lanka as early as 300,000 BP. There is definite evidence of settlements by prehistoric people in Sri Lanka by about 125,000 BP. These people made tools of quartz and chert which are assignable to the Middle Palaeolithic period.
Mesolithic
The island appears to have been colonized by the Balangoda Man prior to 34,000 BP. They have been identified as a group of Mesolithic hunter-gatherers who lived in caves. Fa Hien Cave has yielded the earliest evidence of anatomically modern humans in South Asia. Several of these caves including the well known Batadombalena and the Fa Hien Cave have yielded many artefacts that points to them being the first modern inhabitants of the island. There is evidence from Belilena that salt had been brought in from the coast earlier than 27,000 BP. In June 2020 research carried out by the Max Planck Institute, Griffith University in Australia, and the Department of Archaeology, showed that occupants of the Fa-Hien Lena cave had developed bow and arrow technology 48,000 BP. This is the oldest use of this technology outside of Africa. Several minute granite tools of about 4 centimeters in length, earthenware and remnants of charred timber, and clay burial pots that date back to the Stone Age Mesolithic people who lived 8,000 years ago have been discovered during recent excavations around a cave at Warana Raja Maha Vihara and also in Kalatuwawa area. The skeletal remains of dogs from Nilgala cave and from Bellanbandi Palassa, dating from the Mesolithic era, about 4500 BC, suggest that Balangoda People may have kept domestic dogs for driving game. The Sinhala Hound is similar in appearance to the Kadar Dog, the New Guinea Dog and the dingo. It has been suggested that these could all derive from a common domestic stock. It is also possible that they may have domesticated jungle fowl, pig, water buffalo and some form of Bos. The Balangoda Man appears to have been responsible for creating Horton Plains, in the central hills, by burning the trees in order to catch game. However, evidence from the plains suggests the incipient management of oats and barley by about 15,000 BC.
Mesolithic–Iron Age transition
The transition in Sri Lanka from the Mesolithic to the Iron Age has not been adequately documented. A human skeleton found at Godavaya in the Hambantota district, provisionally dated back to 5000–3000 BC, was accompanied by tools of animal-bone and stone. However, evidence from Horton Plains indicates the existence of agriculture by about 8000 BC, including herding of Bos and cultivation of oats and barley. Excavations in the cave of Dorawaka-kanda near Kegalle indicate the use about 4300 BC of pottery, together with stone stools, and possibly cereal cultivation. Slag found at Mantai dated to about 1800 BC could indicate the knowledge of copper-working. Cinnamon, which is native to Sri Lanka, was in use in Ancient Egypt in about 1500 BC, suggesting that there were trading links with the island. It is possible that Biblical Tarshish was located on the island.
Iron Age
A large settlement appears to have been founded before 900 BC at the site of Anuradhapura, where signs of an Iron Age culture have been found. The size of the settlement was about 15 hectares at that date, but it expanded to 50 ha, to 'town' size within a couple of centuries. A similar site has been discovered at Aligala in Sigiriya. The earliest chronicles the Dipavamsa and Mahavamsa say that the island was inhabited by tribes of Yakkhas, Nagas and devas. These may refer to totemist Iron Age autochthones. Pottery dating back to the early 4th century BCE has been found at Anuradhapura, bearing Brāhmī script and non-Brahmi writing, which may have arisen through contact with Semitic trading scripts from West Asia. The emergence of new forms of pottery at the same time as the writing, together with other artifacts such as red glass beads, indicate a new cultural impulse, possibly an invasion from North India. The Brahmi writing appears to be in Indo-AryanPrakrit and is almost identical to the Asokan script some 200 years later; none appears to be in Dravidian - corroborating the view that Indo-Aryan was pre-dominant from at least as early as 500 BC in Sri Lanka.