Reference to the village was first recorded in 1265, with the name of Hydwegh (end of the bridge). The name was given it because of a bridge on the Rába River. The villagers were the bridge guards. In the written sources the name of the village was Terra Hyduig (1280), Hydwegh (1283), Hyduig (1286) and Hydueg (1450).
This was later the manor of the Hídvégi-family. Andrew from the Herman tribe got this territory in 1280 and his descendants took its name. In 1342 a chapel was built in the place where today's church now stands. In the Middle Ages the village also had a castle for the defence of the bridge. In 1532 the Turks destroyed this castle. In 1605 there were two battles here between István Bocskai's army and the royal army.