sentences:  From 1160 it was ruled by the Counts of Andechs, from 1248 the Wittelsbach dynasty.Benefiting from its location by the Inn Schärding became a center of trade, particularly for salt, timber, ores, wine, silk, glass, grain, textiles and livestock.the town was granted market rights at the end of the 13th century.After many changes of ownership in the 14th century, for example on 20 January 1316 (to the Wittelsbach), on September 24, 1364 it went to Rudolf IV of the House of Habsburg.