During his brother's rule in Spain, he abolished the Spanish Inquisition in 1813.