Malaysia's border with Thailand is located to the north of Peninsula Malaysia and runs between the Straits of Malacca on the west and the Gulf of Thailand/South China Sea in the east. The Malaysian states of Kedah, Kelantan, Perak and Perlis border the Thai provinces of Narathiwat, Satun, Songkhla and Yala. The border length is 646.5 km.