Ágfalva (German: Agendorf) is a village in Hungary, in the north-western Győr-Moson-Sopron region, 4 kilometers from Sopron and two kilometers from the border of Austria.
The original name of the settlement was Dág, recorded in 1194 and coming from the Hungarian personal name.
The prefix being identified with the word ág ('branch') and the suffix translated, this was adopted to Hungarian as Ágfalva.
Archaeological evidence proves inhabitation at least since Roman occupation.
Following World War I, the village took part in a plebiscite in 1921 along with eight surrounding settlements, asking whether they wished to remain in Hungary, or to join the new Austrian Republic.