Why did the Spanish build presidios?

A.) to protect the missions and their inhabitants
B.) to serve as prison camps for American Indians captured in battle
C.) to provide centers for converting American Indians to Catholicism
D.) to provide a quiet space for Spanish priests to study