The settlement was attacked by Indians in 1675 during King Philip's War. Settlers moved to the mouth of the river, and the houses and mills they left behind were burned. Saco lay in contested territory between New England and New France, which recruited the Indians as allies. In 1689 during King William's War, it was again attacked, with some residents taken captive. Hostilities intensified from 1702 until 1709, then ceased in 1713 with the Treaty of Portsmouth. The community was rebuilt and in 1718 incorporated as Biddeford. Peace would not last, however, and the town was again attacked in 1723 during Dummer's War, when it contained 14 garrisons. In August and September 1723, there were Indian raids on Saco, Maine and Dover, New Hampshire. But in 1724, a Massachusetts militia destroyed Norridgewock, an Abenaki stronghold on the Kennebec River organizing raids on English settlements. The region became less dangerous, especially after the French defeat in 1745 at the Battle of Louisburg. The French and Indian Wars finally ended with the 1763 Treaty of Paris.