The Magyar tribes gradually occupied the whole territory of the Carpathian Basin between 895 and 907. Between 899 and 970, the Magyars frequently conducted raids into the territories of present-day Italy, Germany, France and Spain and into the lands of the Byzantine Empire. Such activities continued westwards until the Battle of Lechfeld (955), when Otto, King of the Germans destroyed their troops; their raids against the Byzantine Empire ended in 970.