*fagr (Proto-Germanic) comes from Proto-Germanic fagraz, from Proto-Indo-European ph₂ḱ- — to fasten, place.