The first hereditary Count Palatine of the Rhine was Conrad, a member of the House of Hohenstaufen and younger half-brother of Emperor Frederick Barbarossa. The territories attached to this hereditary office in 1156 started from those held by the Hohenstaufens in the Donnersberg, Nahegau, Haardt, Bergstraße and Kraichgau regions (other branches of the Hohenstaufens received lands in the Duchy of Swabia, Franche-Comté, and so forth). Much of this was from their imperial ancestors, the Salian emperors, and apart from Conrad's maternal ancestry, the Counts of Saarbrücken. These backgrounds explain the composition of Upper and Rhenish Palatinate in the inheritance centuries onwards. About 1182, Conrad moved his residence from Stahleck Castle near Bacharach up the Rhine River to Heidelberg.