 Acting as French administrator of Morocco, Lyautey, decided to relocate the country's capital from Fes to Rabat.Among other factors, rebellious citizens had made Fes an unstable place.Sultan Moulay Youssef followed the decision of the French and moved his residence to Rabat.