What was the Alamo meant to be in the first place?

It was built as a Catholic mission in the early 18th Century; a church to minister to the native peoples and spread the Catholic religion. The Spanish built such missions all over the world in the lands they controlled.