Heilbronn was founded in 1220 as a Royal city by Emperor Friedrich II. In 1281 it became a free Imperial city.