Around 895, the women and cattle of the Magyar warriors battling in the west were attacked by the Pechenegs, forcing them to leave their territories east of the Carpathian Mountains; the Magyars moved into the Carpathian Basin.