Dubai, also spelled Dubayy, constituent emirate of the United Arab Emirates (formerly Trucial States or Trucial Oman). The second most populous and second largest state of the federation (area 1,510 square miles [3,900 square km]), it is roughly rectangular, with a frontage of about 45 miles (72 km) on the Persian Gulf. The emirate’s capital, also named Dubai, is the largest city of the federation. The city is located on a small creek in the northeast part of the state. More than nine-tenths of the emirate’s population lives in the capital and nearby built-up sections. Dubai is surrounded by Abu Dhabi emirate on the south and west and by Al-Shāriqah emirate on the east and northeast. In addition, the small exclave (detached section) of Al-Ḥajarayn in the Wadi Ḥattá, more than 25 miles (40 km) from the nearest territory of Dubai proper, belongs to the state.