The tricorne appeared as a result of the evolution of the broad-brim round hat used by Spanish soldiers in Flanders during the 17th century. By pledging (binding) the brims, a triangular shape was obtained. This shape was favored by Spanish soldiers, as when standing at arms their muskets could be held at their shoulders right or left without hitting the hat brim. War broke out between France and Spain in 1667 over the Spanish Netherlands, and during the subsequent struggle its use spread to the French armies. The style was brought back to France, where its usage spread to the French population and the royal court of King Louis XIV, who made it fashionable throughout Europe, both as a civilian and military wear. By the end of the 17th century, the tricorne was popular in both civilian fashion and in military uniforms. They remained one of the predominant European styles of hat throughout the 18th century. In the United States, only the first five Presidents, from George Washington to James Monroe, wore this style of hat according to the fashion of the 18th century. James Monroe earned the nickname "The Last Cocked Hat" because of this.