Like many of Ibiza's churches, it was built as a combination house of worship and fortress.
Much like a lot of other churches in Ibiza, it was constructed to be used as both a fortress and a place of worship.