After victory at Stirling Bridge, William Wallace's army was defeated by King Edward I's larger force at the Battle of Falkirk in 1298. The English cavalry flanked the Scottish army, driving off the Scottish cavalry and leaving the infantry formations vulnerable to attacks by English longbowmen. Many Scottish soldiers were killed or fled as a result. After the battle, Wallace resigned as Guardian of Scotland and went into exile, while the English monarch strengthened his control over Scotland in the following years until Wallace was captured and executed in 1305.