Ptolemy, the last king of Mauretania, which included parts of modern-day Morocco, was executed by Roman Emperor Caligula in 40 AD over a purple cloak. Following his death, Mauretania was annexed by Rome and divided into provinces, with northern Morocco becoming Mauretania Tingitana.