The Meshwesh are known from ancient Egyptian texts as early as the 18th Dynasty, where they are mentioned as a source of cattle provided to king Amenhotep III's palace at Malkata.
The Meshwesh or Ma were nomad hunter pastoralists, living off their goats, camels and other livestock while hunting and gathering at the same time.
The first ancient Egyptian sources described the Meshwesh men with tattoos and long hair with longer side locks in the front, while centuries later they appear with shorter hair of Egyptian influence but braided and beaded, neatly parted in both sides from their temples and decorated with one or two feathers attached to leather bands around the crown of the head.
They still used the same robes as before, a thin mantle of antelope hide, dyed and printed, crossing one of their shoulders and coming down until mid calf length to make an open robe over a loincloth with an adorned phallus sheath, being the only exception of the new addition of a kilt above the knees and an animal tail in the Egyptian manner of king Narmer and the phallus adornment over it.
During the following reign, that of Ramesses II, the Egyptians constructed a series of coastal fortresses running west to the region of Marsa Matruh, including at al-Alamayn and Zawayat Umm al-Rakham.
Unlike his predecessors, Merenptah states in his battle reliefs at Karnak that it was primarily the Libu tribe who led the conflict, but that Meshwesh and Sea People allies were also involved.
This time, it was the Meshwesh who instigated the conflict, though other Libyan tribes and their Sea People allies were involved in fighting two major campaigns against the Egyptian king, in Ramesses III's Regnal Years 5 and 11.
Throughout the 20th Dynasty, various texts on ostraca and papyri mention attacks by Meshwesh tribesmen as far south as Thebes, where the workmen of Deir el-Medina were forced to seek protection inside the mortuary temple of Medinet Habu.
During the late Third Intermediate Period, the Nile Delta hosted the four great chiefdoms of the Meshwesh, each ruled by a "Great Chief of the Ma", whose seats of power were in the cities of Mendes, Sebennytos, Busiris and Per-Sopdu respectively; other lesser chiefdoms, led by a simple "Chief of the Ma", were located at Sais and Pharbaithos.