Glarus joined the Old Swiss Confederacy in 1352 as one of the foundational eight cantons ("Acht Orte") of the period of 1353–1481. The first recorded Landsgemeinde of Glarus took place in 1387. Habsburg attempts to reconquer the valley were repelled in the Battle of Näfels of 1388. A banner depicting Saint Fridolin was used to rally the people of Glarus at that battle, and from that time Glarus has used the image of Saint Fridolin on its flags and in its coat of arms.