Complex sentence: All changed with the arrival of the Spaniards and the introduction of Western law to the archipelago, and until 1868, personnel of the Spanish Army and local militias were also tasked with policing duties in local communities.
Split into simpler sentences: All changed with the arrival of the Spanish and the introduction of Western law to the archipelago. Until 1868, personnel of the Spanish army and local militias were also tasked with policing duties in local communities.