Zakojca (pronounced [zaˈkoːi̯tsa]) is a settlement in the Municipality of Cerkno in the traditional Littoral region of Slovenia. It consists of three hamlets: Dolnja Vas, Srednja Vas, and Gornja Vas (Slovene: Dolnja vas, Srednja vas, Gornja vas).
The name of the settlement is derived from Mount Kojca. It is a fused prepositional phrase that has lost case inflection (za + Kojca, literally 'behind Mount Kojca') and refers to the settlement's location on the opposite (north) side of Mount Kojca in relation to other nearby villages on the south side of the mountain.
Zakojca is best known as the birthplace of the writer France Bevk. The house where he was born—a small half-stone, half-log building known as "Jernej's shed" (Jernejeva pajštva)—is no longer standing. The house where he spent his childhood is known as the Volar Farm (Volarjeva domačija) and is located at Zakojca no. 10 in the hamlet of Dolnja Vas. The house was purchased at an auction by Bevk's grandfather Jakob when Bevk was three years old. The house contains a small ethnological museum downstairs and a literary history museum in the attic with exhibits related to Bevk and his life and work. The home was registered as a Slovenian cultural heritage site in 1986.