Krakovets (Краковець, Krakowiec (original spelling) also found on American immigration documents as Krakowicz and Krakowice) is an urban-type settlement in Yavoriv Raion, Lviv Oblast, in western Ukraine. It lies on the Polish-Ukrainian border, roughly half way between Lviv in Ukraine and Kraków in Poland on the European route E40, hosting the Korczowa-Krakovets border crossing. Krakovets belongs to Yavoriv urban hromada, one of the hromadas of Ukraine. The population was estimated at .
The first record mentioning the settlement dates from 1320. In 1425 the town received Magdeburg rights and in 1520 the status as town was confirmed. In 1590 Aleksander Ostrogski built the Krakowiec castle. The town became property of the Cetner, Potocki and Lubomirski families and remained a small strategic outpost protecting the core territories of Crown of the Kingdom of Poland and its capital Kraków from invasions of the Khazar Khaganate, Varangians, Pechenegs, Golden Horde, Nogais,