Ajdovščina
The municipality of Ajdovščina is surrounded by the following municipalities: Idrija to the north and east, Postojna to the southeast, Vipava to the south, Komen to the southwest and Nova Gorica to the west.