By the late 4th century AD, the Middle Danubian frontier inhabited by the Quadi and Marcomanni received large numbers of Gothic and other eastern peoples escaping disturbances associated with the Huns. In 406 AD, Suebian tribes led by Hermeric, together with other Danubian groups including Alans and Vandals, crossed the Rhine and overran Gaul and Hispania. They eventually established the Kingdom of the Suebi in northwestern Spain and Portugal. With the breaking up of Hunnic power after the Battle of Nedao there was also a short-lived Kingdom of the Suebi on the Danube, under Hunimund. They were defeated by the Ostrogoths, one of the peoples of eastern origin who had been allies of the Huns. In the sixth century the Suevic Longobards moved from the Elbe to become one of the major powers of the Middle Danube, in competition with the dynasties from the east such as the Herules, Gepids and Ostrogoths.