The Middle Kingdom of Egypt (also known as The Period of Reunification) is the period in the history of ancient Egypt between about 2000 BC and 1700 BC, stretching from the establishment of the Eleventh Dynasty to the end of the Twelfth Dynasty, although some writers include the Thirteenth and Fourteenth dynasties in the Second Intermediate Period. During this period, Osiris became the most important deity in popular religion.