Duke Liudolf of Swabia is believed to have founded Stuttgart in 950 AD during the Hungarian invasions of Europe, just before the Battle of Lechfeld, around a stud farm. This particular location was picked because of the three hills around the basin, making it ideal for horse breeding.