Egypt, therefore, was not ruled by a family, but by a military corporation constantly refreshing its ranks with new mamluks. It was a meritocracy, and the system worked. Under the mamluks, Egypt became the leading nation in the Arab world, a status it has never really relinquished.