Catholicism is the main religion in Spain. It became Spain's official religion in the year 589 and has remained so ever since.
A 2014 study by the Spanish Center for Sociological Research found that around 68 percent of the Spanish population identifies as Catholic while about 27 percent are atheists or claim no religion and 2 percent are identified as believing in other faiths. There are small groups of Buddhists, Hindus, Pagans, Bahais, and Taoists throughout Spain.
The same study found, however, that among those who identified as Catholic, only 14 percent attended mass every Sunday or multiple times in a week. Around 14 percent went to mass a few times a year, 10 percent went a few times a month, and around 61 percent barely ever went. Most Spaniards report ignoring the Catholic Church's moral doctrines when it comes to sexual orientation, contraception and premarital sex.
Attitudes about religion in Spain are in tune with the percentage of Spaniards identifying as Catholic. Around 59 percent of the population believes in God, 21 percent believe in a spirit or life force, while 19 percent believe there is no God, no spirit and no life force.
Notably, an attempt by Catholic monarchs King Ferdinand II of Aragon and Queen Isabella I of Castile in the 1400s to rid the Spanish peninsula from Jewish and Muslim thought resulted in what became known as the Spanish Inquisition.