The Mahakam River flows 650 km (400 mi) from the highlands of Borneo to its mouth in Makassar Strait. The city of Samarinda , capital of East Kalimantan, lies along the river 48 km (30 mi) from the river mouth.