The Nigerian military's fundamental pledge to the nation is to protect the territorial integrity of Nigeria.
This entails:
Enshrined in the Constitution (Section 217) and the Armed Forces Act. The military operates under civilian authority of the President as Commander-in-Chief.