Morocco becomes independent
In 410 AC, Morocco became an independent country from the Roman Empire. It didn't have a lot of contact with Egypt during those years.
Morocco becomes good friends with Libya
In 524, Morocco becomes good friends with Libya.
Egypt gets bigger
In 789, Egypt conquered Libya. Morocco doesn't like this and sends troops to Libya, to help with the fight against Egypt.
Morocco attacks Algeria
In 795, Morocco begin to attack Algeria.