megye (Hungarian) comes from Serbo-Croatian međa, from Proto-Slavic meďa, from Proto-Indo-European médʰyos, from Proto-Indo-European medʰi-, from Proto-Indo-European me — in the middle of, near, by, around, with.
megye (Hungarian): county, shire