The French then took control of Casablanca. This effectively began the process of colonialisation, although French control of Casablanca was not formalised until 1910. It was especially during the years of military governor Hubert Lyautey that Casablanca became Morocco's economic center and Africa's biggest harbour.