The Thirteenth Dynasty of ancient Egypt (notated Dynasty XIII) was a series of rulers from approximately 1803 BC until approximately 1649 BC, i.e. for 154 years. It is often classified as the final dynasty of the Middle Kingdom (which includes Dynasties XI, XII and XIV), but some historians instead group it in the Second Intermediate Period (with Dynasties XIV through XVII).
Dynasty XIII initially ruled from the Nile Delta to the second cataract of the Nile. However, the dynasty marked a period of decline and instability, with the Canaanite Dynasty XIV rising concurrently and the Hyksos Dynasty XV taking control shortly after.