 French officers trained the Moroccan army and advised the Moroccans in the building of public works.French Consuls in Morocco were assigned, such as Jean-Baptiste Estelle.The French ambassador François Pidou de Saint Olon, was sent by Louis XIV visited Moulai Ismael in 1693.