In early medieval sources, in addition to the Hungarians, the exonym ' or ' referred to the Mansi and Khantys also. It may refer to the Hungarians during a time when they dwelt east of the Ural Mountains along the natural borders of Europe and Asia before the Hungarian conquest of the Carpathian Basin in 895–6. The toponym ' or ' referred to that territory from around the 12th century. Herodotus in the 5th century BC probably referred to ancestors of the Hungarians when he wrote of the Yugra people living west of the Ural Mountains.