Hmm.
There were a bunch of 19th century Spanish interventions in Latin America, In none of them was the Monroe doctrine (1823) effectual.
This one was, probably, the first - https://en.wikipedia.org/wiki/Spanish_attempts_to_reconquer_Mexico
Pedants are boring.