The military history of Morocco covers a vast time period and complex events. It interacts with multiple military events in a vast area containing North Africa and the Iberian Peninsula.