The Magyars, a Finno-Ugric people from the Ural Mountains, settled in the Carpathian Basin in the late 9th century. Under their leader rpd, they established the Kingdom of Hungary in 896 AD, founding the Hungarian nation in the Danube's middle basin.