Either you’re a resident of Ibiza or have a Catholic Faith, you can legally get married at Ibiza. Couples who are both Catholic or maybe one who is Catholic can get married legally in a church.