One of the coolest things about this imaginary universe in "The Library of Babel" is the way Borges manages to squeeze in a lot of references to different kinds of religious philosophies and religious history. You've got your mystics, your zealots, and your blasphemers, your orthodox religions and your breakaway sects. There's a religion that bears some resemblance to Buddhism, and there's even an Inquisition! By reflecting on so many aspects of religious history and thought, Borges is able to show us that sometimes religion can be a source of hope, while at other times it can be an instrument of intolerance and destruction.
Of all the religious ideas found in the Library, the narrator favors those that can be arrived at logically, and dismisses those that have no logical basis.
Borges' description of the Library's inquisitors and Purifiers is parodic, and shows him to be critical of Catholicism in particular and religion in general.