The conflict was used as a pretext for introducing military rule.
on/under the pretext of doing something:
He visited her on the pretext of borrowing a book.
a pretext to do something:
A slight fall in profits gave the management a pretext to get rid of some older members of staff.