After their brother Count William of Schwarzburg-Frankenhausen had died in 1597, the surviving brothers Albert VII and John Günther I established the two counties of Schwarzburg-Rudolstadt and Schwarzburg-Sondershausen by the 1599 Treaty of Stadtilm.