 Throughout his reign, he faced constant threats from the Portuguese as well as the emerging Aceh Sultanate.In 1529, Alauddin Riayat founded his first capital in Hujung Tanah, known as Pekan Tua, 11 km upriver from Kota Tinggi, following the death of his father.A river fort, Kota Kara was also founded down the river.