Most of these forts were built or expanded between the fifth and fifteenth centuries, when they were used in the Dukes' Wars, and against the invasion of Teutonic Knights from the west. Most forts were located on the banks of a river, or a confluence where two rivers met. These fortifications were typically wooden, although some had additional stone or brick walls.