Regular diplomatic relations were established in 1905. In 1912 Morocco came under the control of France and Spain as protectorates. The United States did not initially recognize the French and Spanish protectorates over Morocco.