The Spanish Inquisition was a bad period for Spain, and lasted over 300 years, but brutal period took place during Ferdinand and Isabellas rule. The inquisition consisted of removing anyone who was not Catholic from Spain.
Pope Sixtus IV created the inquisition in 1478, and anyone who was not Catholic was subject to torture and/or death if they did not renounce their own religion and become a Catholic.