Niqmepa (died c. 1270 BC) was the fourth King of Ugarit, a city-state in northwestern Syria. Niqmepa was a contemporary of Mursili II and Hattusili III, the great Hittite kings, as well as Horemheb and Seti I of Egypt. His reign is well documented by cuneiform texts found at Ugarit. He ruled for about fifty years (ca. 1320–1270 BC) making his reign one of the longest in Ugarit history. He was the son of Niqmaddu II, and the brother and successor of Arhalba. Arhalba only ruled for two years and was forced to abdicate in favor of his brother by the Hittite king Mursili II after his failed attempt to reproach Egypt for an alliance against the Hittites.
Niqmepa was installed by the Hittite king Mursili II and was forced to sign a new treaty declaring explicitly that Ugarit was a vassal state of the Hittites. The treaty reveals that Niqmepa had a harem, and states that his woman and children will be held responsible if he fails to honor his obligations. At the same time Ugarit lost control of the territory of Shiyannu to the east, which halved the area controlled by Niqmepa. The secession was confirmed by Mursili II and Shiyannu was placed under the direct control of Carchemish, which was ruled by descendants of Hittite kings as "viceroys". However, because of the loss of Shiyannu, and by request from Niqmepa, the tribute of Ugarit was reduced by a third. During Niqmepa's reign Ugarit became entirely encircled by areas under Hittite control.
Niqmepa married princess Ahatmilku, of the Amurru kingdom to the south. After a long reign of about 50 years as the vassal of four successive Hittite kings, Niqmepa was succeeded by his son, Ammittamru II.