 At the end of the 13th century, Heubach and Rosenstein came into possession of the Counts of Oettingen, before it fell to the Counts of Württemberg from 1358 onwards.Subsequent to the victory of Emperor Charles IV over Eberhard II, Count of Würtemberg, in 1360 Heubach and Rosenstein fell to the Kingdom of Bohemia.However it was transferred back to Württemberg in 1377.