Tayma ˈtaɪmə (Taymanitic: 𐪉𐪃𐪒, vocalized as: Taymāʾ; تيماء) or Tema (תֵּימָן Tēmān (Habakkuk 3:3) is a large oasis with a long history of settlement, located in northwestern Saudi Arabia at the point where the trade route between Medina and Dumah (al-Jawf) begins to cross the Nafud desert. Tayma is located southeast of the city of Tabuk, and about north of Medina. It is located in the western part of al-Nafud.
The historical significance of Tayma is based on the existence there of an oasis, which helped it become a stopping point on commercial desert routes. An important event was the presence there of the Babylonian king Nabonidus, who took residence there in the mid-6th century BCE.
Recent archaeological discoveries show that Tayma has been inhabited since at least the Bronze Age. In 2010, the Saudi Commission for Tourism and Antiquities announced the discovery of a rock near Tayma bearing an inscription of Egyptian pharaoh Ramesses III. This was the first confirmed find of a hieroglyphic inscription on Saudi soil. Based on this discovery, researchers have hypothesized that Tayma was part of an important land route between the Red Sea coast of the Arabian Peninsula and the Nile Valley.
The oldest mention of the oasis city appears as "Tiamat" in Assyrian inscriptions dating as far back as the 8th century BC. The oasis developed into a prosperous city, rich in water wells and handsome buildings. Tiglath-pileser III received tribute from Tayma, and Sennacherib (r. 705–681 BC) named one of Nineveh's gates as the Desert Gate, recording that "the gifts of the Sumu'anite and the Teymeite enter through it". It was rich and proud enough in the 7th century BC for Jeremiah to prophesy against it (). It was ruled then by a local Arab dynasty, known as the Qedarites. The names of two 8th-century BC queens, Shamsi and Zabibei, are recorded.
The last Babylonian king, Nabonidus (ruled c. 556–539 BC), conquered Tayma and for ten years of his reign retired there to worship and search for prophecies, entrusting the kingship of Babylon to his son, Belshazzar.