Original: It was intended to maintain Catholic orthodoxy in their kingdoms, and to replace the Medieval Inquisition which was under Papal control.
Simplified: The Inquisition was not completely abolished until 1834.