The first building was destroyed during the Williamite War (1688–91). By 1702, there was a new grammar school, which lasted until 1820 when it was rebuilt.