Hat Yai (Thai: หาดใหญ่, pronounced [hàːt jàj], also Haad Yai or Had Yai) is a city in southern Thailand near the Malaysian border. It is 946 km (588 mi) south of Bangkok, and has a population of 156,802 (2019) in the city itself and an urban population of about 400,000 (2021) in the entire district of Amphoe Hat Yai. Hat Yai is the largest city of Songkhla province and is part of the Greater Hat Yai-Songkhla Metropolitan Area (a conurbation with a population of about 800,000), forming the largest metropolitan area in the south, and the third largest metropolitan area of the country. The city is often mistaken for being the provincial capital. In fact, Songkhla is the capital and the center of administration and culture while Hat Yai is the business center.