What is a khilālah used for?

The Barqaʿīd Maqāmah: Abū Zayd’s Sight, the Cleansing Ruse and His Escape