In the process of destroying the Mamluks , the Wāli had to fill the governmental roles that the Mamluks had previously filled .
In the process of destroying the Mamluks , the Wāli had to fill the posts that the Mamluks had previously filled .