in order to guarantee his own safety he moved the capital city from fez to rabat