and Kota Bukit Pinang. The pre-existing settlement was originally a small village. However, the sultan found the area to be in a strategic location, he was drawn to the area as it was covered in a lush greenery and a center between the two estuaries of Kedah River converged. Upon the agreement with fellow Kedahan ministers, they agreed to institute a new town known as "Kota Setar" (the "Town of Setar"). The name was derived from Bouea macrophylla, a type of tree that can be found in the area. Period of turbulence A new administration institution was constructed in the settlement, with the sultan resided in Istana Kota Setar. However, the capital suffered a major attack when the Bugis armanda led by Raja Haji managed to destroy both the Istana Kota Setar (Royal Palace) and Balai Besar (Grand Hall) in 1770. In 1771, the British represented by Francis Light and Sultan Abdullah Mukaram Shah entered an agreement to halt the Bugis influence in Kedah. During the coronation ceremony of Ahmad Tajuddin Halim Shah II of Kedah on 17 March 1805, Siamese forces managed to occupy the capital. The sultan was forced to retreat to Penang and later Malacca. The settlement was put on a standstill for 20 years. He was restored to the crown in 1842 and the capital was temporary relocated to Kota Kuala Muda before returning to Kota Setar. Recovery and growth In October 1883, James F. Agustin, an Englishmen arrived in Kuala Sungai Kedah (now known as Kuala Kedah) about 10 km from the capital. He and a few other English explorers embarked their journey towards inland areas of Kedah where he met several Malay settlement on the riverbanks of the Kedah river. Upon his arrival in Kampung Kota Setar, he befriended several local Malays and they invited him to the sultan's palatial residence. Agustin remarked on the beauty of the palatial architecture and its landscape covered with the stalk trees. He was well received by the sultan and both parties exchanged goods between one another. The visit by Agustin spurred a growth for a more active and direct trade relations between the area and outside commercial powerhouse. The city attracted various cosmopolitan trading activities from the British, Indian, Chinese together with other local and regional merchants. The town prospered from a small settlement into a bustling town designated to accommodate further population growth, commerce and administration.