Built between 1672 and 1727, the sultan of Morocco Moulay Ismail (and founder of the current dynasty) constructed impressive royal stables, capable of housing 12,000 horses and feeding them for 20 years. Moulay Ismail's grandson, Sultan Muhammad III, eventually became the first head of state to formally recognize the United States of America as a sovereign government with the treaty of Peace and Friendship in 1777.