Why was Morocco closed to tourists for 16 weeks?

Exclusive: First flights from UK are on British Airways to Marrakech, Tui and Ryanair to Agadir and Royal Air Maroc to Casablanca