Uralic languages
The Khanty language is part of the Ugric branch of the Uralic languages, and thus most closely related to Mansi and Hungarian.