The Mamluk Sultanate survived from roughly 1250 until…well, that’s not as simple a question as it might seem on first glance. The most common answer is the most obvious one: 1517. That’s when the Ottomans conquered Cairo and took control of Egypt, Syria, and the Hejaz, which they would hold until the end of World War I (and the end of the Ottoman Empire). The expansive “ahhhh, actually” answer is 1811, when the Ottoman viceroy of Egypt, Muhammad Ali, massacred most of the mamluk class in his Cairo citadel. The Ottomans, see, viewed Egypt as something of a special prize, and rightly so–it was probably the most important conquest they ever made. So they were very careful not to disrupt its administration they way they did in the other places they conquered. Which meant that the mamluks, despite losing their sultanate, maintained their status at the top of the social pecking order. Eventually they usurped real power from the Ottoman governors and reasserted themselves. Until Muhammad Ali, you know, killed them all.
For our purposes, I’m going to propose a third date: 1382. Which is definitely not the end of the Mamluk Sultanate, but it is the end of the Bahri “Dynasty” whose birth we discussed last time. Eventually the mostly Turkic Bahri sultans were superseded by a line of Circassian mamluks that historians call the Burji “Dynasty,” because they ruled out of the Cairo citadel (burj in Arabic means “tower”).