The Zagwe dynasty (Ge'ez: ዛጔ ሥርወ መንግሥት) was an Agaw medieval dynasty that ruled the northern parts of Ethiopia and Eritrea, after the historical name of the Lasta province. Centered at Roha (later named Lalibela), it ruled large parts of the territory from approximately 900 to 1270 CE, when the last Zagwe King Za-Ilmaknun was killed in battle by the forces of the Amhara King Yekuno Amlak. The name of the dynasty is thought to derive from the ancient Ge'ez phrase Ze-Agaw, meaning "of the Agaw", in reference to the Mara Tekle Haymanot, the founder of the dynasty. Zagwe's best-known King was Gebre Mesqel Lalibela, who is credited with having constructed the rock-hewn monolithic churches of Lalibela.
David Buxton has stated that the areas under the direct rule of the Zagwe kings apart from the centre of power in Lasta "probably embraced the highlands of modern Eritrea, Tigray, Wag and Bete Amhara and thence westwards towards Lake Tana (Begemder)." Unlike the practice of later rulers of Ethiopia, Taddesse Tamrat argues that under the Zagwe dynasty the order of succession was that of brother succeeding brother as king, based on the Agaw laws of inheritance.
According to one tradition, around 960, Queen Gudit destroyed the remnants of the Kingdom of Aksum, causing a shift in its temporal power centre that later regrouped more to the south. For 40 years she ruled over what remained of the kingdom, eventually passing on the throne to her descendants, with Mara marrying the daughter of the last king of Aksum, Dil Na'od. According to other Ethiopian traditional accounts, the last of her dynasty was overthrown by Mara Takla Haymanot in 1137. Still more, according to another tradition, Mara was born in the province of Lasta, which was his power base. Originally a general of Dil Na'od, whose daughter Masoba Warq became his wife, Mara overthrew his father-in-law to found the new dynasty. James Bruce, on the other hand, presents another tradition that Dil Na'od was overthrown by Gudit, and that Mara Takla Haymanot (whom Bruce calls "Takla Haymanot") was a cousin of Gudit who succeeded her after several of her own family.