The early coastal factory model contrasted with the system of the French, who established an extensive system of inland posts and sent traders to live among the tribes of the region. When war broke out in the 1680s between France and England, the two nations regularly sent expeditions to raid and capture each other's fur trading posts. In March 1686, the French sent a raiding party under Chevalier des Troyes over to capture the company's posts along James Bay. In 1697, Pierre Le Moyne d'Iberville, commander of the company's captured posts, defeated three ships of the Royal Navy in the Battle of the Bay on his way to capture York Factory by a ruse. York Factory changed hands several times in the next decade and was finally ceded permanently in the 1713 Treaty of Utrecht. After the treaty, the Hudson Bay Company rebuilt York Factory as a brick star fort at the mouth of the nearby Hayes River, its present location.