From Old Galician-Portuguese, attested as fogio in 13th century local documents; from Latin fovea (“pit”), with a change in gender or possibly through a Vulgar Latin form *foveum, or either from Vulgar Latin *fodia. Compare Portuguese fojo, Spanish hoyo, Asturian fueyu.