Wertheim (East Franconian: Wärde) is a town in southwestern Germany, in the state of Baden-Württemberg with a population of around 23,400. It is located on the confluence of the rivers Tauber and Main. Wertheim is best known for its landmark castle and medieval town centre. Geography Wertheim is the most northerly town in the state of Baden-Württemberg. It is situated at the confluence of the rivers Tauber and Main, on the Main's left bank. It borders on the Odenwald hills and the Spessart range to the north across the river Main. Wertheim is located in the Main-Tauber district. Neighboring communities The following towns and communities border on Wertheim, listed clockwise starting in the east: Holzkirchen, Helmstadt and Neubrunn (all district Würzburg, Bavaria), Werbach and Külsheim (both Main-Tauber district), Neunkirchen (district Miltenberg, Bavaria), Freudenberg (Main-Tauber district), Stadtprozelten and Faulbach (both Miltenberg district) and Hasloch, Kreuzwertheim and Triefenstein (all Main-Spessart district, Bavaria). History was founded between the 7th and 8th century. However, the first settlement was a town called on the right bank of the river Main. From the early 12th century onwards, a branch of the noble family of the Reginbodons called themselves after the town. After the family of the had built a castle on the left bank of the river Main, a settlement developed at the foot of this dominating structure that was called . It was mentioned for the first time in 779. In 1192, it was referred to as and in 1200 the town was referred to as an and in 1244 as a . Count of reigned from the year 1355 to 1373. In 1363 Emperor Charles IV granted him by degree the right to mint coins. The last Count of was Michael III. He married , the oldest daughter of Ludwig of Stolberg. Michael died without producing a male heir and consequently the county passed to of . In 1574, after the death of , the county passed on to his son-in-law Count of . The town developed into the center of the County of Wertheim. The county was governed by the House of . In 1630, the house split into two lines: the older Protestant line and the Catholic line . The county existed until 1806 when it was divided as a consequence of the German mediatization (). The area left of the Main river was given to the Grand Duchy of Baden, while