The Middle Kingdom is the period in the history of ancient Egypt stretching from the establishment of the Eleventh Dynasty to the end of the Fourteenth Dynasty , roughly between 2030 BC and 1640 BC . The Middle Kingdom of Egypt is the period in the history of ancient Egypt stretching from the establishment of the Eleventh Dynasty to the end of the Fourteenth Dynasty , between 2055 BC and 1650 BC , although some writers include the Thirteenth and Fourteenth dynasties in the Second Intermediate Period .