Nemed or Nimeth is a character in medieval Irish legend. According to the Lebor Gabála Érenn, he is the leader of the third group of people to settle in Ireland: the Muintir Nemid, Clann Nemid or "Nemedians". They arrive thirty years after their predecessors, the Muintir Partholóin, had died out. Nemed eventually dies of plague and his people are oppressed by the Fomorians. They rise up against the Fomorians, but most are killed and the survivors abandon the island. Their descendants become the Fir Bolg and the Tuatha Dé Danann.
According to the Lebor Gabála, Nemed, like those who settled Ireland before him, had a genealogy going back to the Biblical Noah. Nemed was the son of Agnoman of Scythia, the son of Piamp, son of Tait, son of Sera, son of Sru, son of Esru, son of Friamaint, son of Fathochta, son of Magog, son of Japheth, one of the sons of Noah. Ireland had been uninhabited since the Muintir Partholóin died of plague. The Muintir Nemid set sail from the Caspian Sea in 44 ships, but after a year and a half of sailing, the only ship to reach Ireland is Nemed's. Also on board are his wife Macha, his four chieftain sons, and others. His wife Macha dies twelve days after they arrive and is buried at Ard Mhacha. Two quite different dates are given for the arrival of Muintir Nemid: 2350 BCE according to the Annals of the Four Masters, or 1731 BCE in Seathrún Céitinn's chronology. Four lakes burst from the ground in Nemed's time, including Loch Annind, which burst from the ground when Annind's grave was being dug. The other three lakes were Loch Cál in Uí Nialláin, Loch Munremair in Luigne, and Loch Dairbrech in Mide. The Muintir Nemid clear twelve plains: Mag Cera, Mag Eba, Mag Cuile Tolaid and Mag Luirg in Connacht; Mag Seired in Tethbae; Mag Tochair in Tír Eoghain; Mag Selmne in Dál nAraidi; Mag Macha in Airgíalla; Mag Muirthemne in Brega; Mag Bernsa in Leinster; Leccmag and Mag Moda in Munster. They also build two royal forts: Ráth Chimbaith in Semne and Ráth Chindeich in Uí Nialláin. Ráth Chindeich was dug in one day by Boc, Roboc, Ruibne and Rotan, the four sons of Matan Munremar. Nemed kills them before dawn the next morning. Nemed wins four battles against the mysterious Fomorians. Modern scholars believe the Fomorians were a group of deities who represent the harmful or destructive powers of nature; personifications of chaos, darkness, death, blight and drought. These battles are at Ros Fraechain, at Badbgna in Connacht, at Cnamros in Leinster, and at Murbolg in Dál Riata. However, nine years after arriving in Ireland, Nemed dies of plague along with three thousand of his people. He is buried on the hill of Ard Nemid on Great Island in Cork Harbour. The remaining Muintir Nemid are then oppressed by the Fomorians Morc and Conand, who lives in Conand's Tower, on an island off the coast. Each Samhain, they must give two thirds of their children, their corn and their milk to the Fomorians. This tribute that the Nemedians are forced to pay may be "a dim memory of sacrifice offered at the beginning of winter, when the powers of darkness and blight are in the ascendant". After many years, the Muintir Nemid rise up against the Fomorians and attack the Conand's Tower with 60,000 warriors, defeating Conand. Morc then attacks, and almost all of the Nemedians are killed in a tidal wave. Only one ship of thirty men escapes. Some of them go "into the north of the world", some go to Britain and become the ancestors of all Britons, and some go south to Greece. The island would again be empty for another 200 years. The Historia Brittonum—which is earlier than the Lebor Gabála—says there were only three settlements of Ireland, with the Nemedians being the second. It tells us that the Nemedians came from Iberia and stayed in Ireland for many years, but then returned to Iberia. The Lebor Gabála increases the number of settlements to six and makes the Nemedians the third group. The number may have been increased to six to match the "Six Ages of the World". The Historia Brittonum also mentions settlers being drowned while trying to attack a tower at sea. However, in the Historia Brittonum it is the Milesians who attack the tower, which is made of glass. Mention is made in Irish mythology of another Nemed, namely Nemed mac Nama, who may or may not be the same as the Nemed mentioned in the Lebor Gabála. This Nemed is described as a famous warrior king who raised two horses with the Fairy Folk of Síd Ercmon. When the horses were released from the Síd, a stream called Uanob or Oin Aub chased them from the Síd and released foam over the entire land for a year. Cúchulainn later referred to this river thus: "Over the foam of the two horses of Emain am I come".