The eastern part of the Great Moravian core territory (present-day Slovakia) fell under domination of the Hungarian Árpád dynasty. The northwest borders of the Principality of Hungary became a mostly uninhabited or sparsely inhabited land. This was the Hungarian "gyepűelve", and it can be considered as a march that effectively lasted until the mid-13th century. The rest remained under the rule of the local Slavic aristocracy and was gradually integrated into the Kingdom of Hungary in a process finished in the 14th century. In 1000 or 1001, all of present-day Slovakia was taken over by Poland under Boleslav I, and much of this territory became part of the Kingdom of Hungary by 1031.