Fossils and the remains of tools show that the Indonesian archipelago was inhabited by Homo erectus, popularly known as the "Java Man", between 1.5 million years ago and as recently as 35,000 years ago. Homo sapiens reached the region by around 45,000 years ago. In 2011 evidence was uncovered in neighbouring East Timor, showing that 42,000 years ago these early settlers had high-level maritime skills, and by implication the technology needed to make ocean crossings to reach Australia and other islands, as they were catching and consuming large numbers of big deep sea fish such as tuna.
Austronesian peoples, who form the majority of the modern population, migrated to South East Asia from Taiwan. They arrived in Indonesia around 2000 BCE, and as they spread through the archipelago, confined the native Melanesian peoples to the far eastern regions. Ideal agricultural conditions, and the mastering of wet-field rice cultivation as early as the 8th century BCE, allowed villages, towns, and small kingdoms to flourish by the 1st century CE. Indonesia’s strategic sea-lane position fostered inter-island and international trade, including links with Indian kingdoms and China, which were established several centuries BCE. Trade has since fundamentally shaped Indonesian history.
From the 7th century, the powerful Srivijaya naval kingdom flourished as a result of trade and the influences of Hinduism and Buddhism that were imported with it. Between the 8th and 10th centuries, the agricultural Buddhist Sailendra and Hindu Mataram dynasties thrived and declined in inland Java, leaving grand religious monuments such as Sailendra's Borobudur and Mataram's Prambanan. The Hindu Majapahit kingdom was founded in eastern Java in the late 13th century, and under Gajah Mada, its influence stretched over much of Indonesia.
Although Muslim traders first traveled through South East Asia early in the Islamic era, the earliest evidence of Islamized populations in Indonesia