The history of the city of Samarinda is inextricably linked to the migration of the Bugis people—an ethnic group from the island of Sulawesi. As a result of the Gowa War in the 1660s and the signing of the Treaty of Bongaya, a portion of the Bugis were forced to seek a new home. The Sultan of the Kutai principality in East Kalimantan allowed them to settle on his lands in exchange for loyalty and protection. The official founding date of the city is considered to be January 21, 1668, when the first settlers arrived in this region.
The growth and development of Samarinda were determined by several important factors. Firstly, its strategic location on the banks of the Mahakam River, which is the main transport artery connecting the island's interior with the coast of the Makassar Strait. This contributed to the settlement transforming into an important trading post. Secondly, fertile lands and rich natural resources, including timber and later coal, became the foundation of the region's economy. Political support from the Sultan of Kutai ensured stability and security for the first settlers.
The name of the city itself, according to one version, comes from the phrase "sama rendah," which means "equal in height." This reflected the arrangement of the first settlements, where all houses were built on rafts and had the same height as a symbol of equality. The early economy focused on trading agricultural products and forest resources. The city's culture formed as a unique blend of the traditions of the indigenous Dayak peoples, the Malay culture of the Kutai Sultanate, and the customs of the incoming Bugis, making Samarinda one of the colorful centres of Indonesia.