In 1823 an Ottoman garrison, retreating from the coastal town of Missolonghi, made an ill-advised detour through Agrafa. Disorientated by the unrelenting landscape of mountains, forests and ravines, they were ambushed by a group of 800 Greek fighters who wiped them all out by the village of Agios Vlasios in one of the Greek Revolution's most celebrated battles. The Ottomans never approached the region again. A few years later, Agrafa became part of the newly independent Kingdom of Greece.