Bretten (ˈbʁɛtn̩; South Franconian: Bredde) is a town in the state of Baden-Württemberg, Germany. It is located on Bertha Benz Memorial Route. Bretten lies in the centre of a rectangle that is formed by Heidelberg, Karlsruhe, Heilbronn and Stuttgart as corners. It has a population of approximately 28,000. The centre of Bretten consists of many old half-timbered houses around a lively marketplace. Towns and villages under the administration of Bretten include Bauerbach, Büchig, Diedelsheim, Dürrenbüchig, Gölshausen, Neibsheim, Rinklingen, Ruit and Sprantal. Bretten was first mentioned as "villa breteheim" in the "Lorsch codex" in 767. Since 1148 Bretten had the right to mint and issue coins. In 1254 Bretten received city rights. In 1492 Bretten was granted to hold four fairs by Pfalzgraf Philipp. Philipp Melanchthon was born in Bretten in 1497. The residents of Bretten successfully sallied against the Swabian besiegers around Ulrich of Württemberg in 1504. In 1803 Bretten became “Badische Amtsstadt”. After the industrial revolution, the local economy was dominated by cooker production for many years. In 1975 Bretten was given the status of a "Große Kreisstadt" (district city). Bretten station is on the Württemberg Western Railway and the Kraichgau Railway. Every two hours there are direct train connections to Stuttgart and Heidelberg. Many commuters live in Bretten and use S4 services of the Karlsruhe Stadtbahn, which runs three times an hour to Karlsruhe and back. In Bretten there are five Stadtbahn stations and five more stations in the villages that belong to the district of Bretten. The motorways A5, A6 and A8 are reachable within approximately 30 minutes. The largest event in Bretten is the annual Peter and Paul Festival, which usually attracts up to 80,000 visitors. It is held one long weekend in summer. The main attractions are the numerous performances in countless camps and in the medieval lanes in the old town of Bretten. On Sunday, a huge procession of dressed-up citizens and guest groups takes place.