William allied himself with his brothers in the
Thirty Years' War, serving under
Ernst von Mansfeld and
Georg Friedrich, Margrave of Baden-Durlach. Later he was promoted under the service of
Christian the Younger of Brunswick. During the division of the paternal states in 1640, William retained Weimar and Jena, and his younger brother
Albrecht received Eisenach. When Albrecht died childless in 1644, William assumed control of the entire inheritance. King
Gustavus Adolphus of Sweden was responsible for William's quick rise through the ranks of the military. After Gustav II Adolf's death, however, Count
Axel Oxenstierna successfully prevented William from assuming another command as lieutenant general, and William acceded to the
Peace of Prague in 1635. When Prince Louis I of Anhalt-Köthen died on 7 January 1650, the members of the
Fruitbearing Society decided that William should become his uncle's successor as head of the society. After the obligatory mourning period, William became the new head of the society on 8 May 1651, a position that he retained to the end of his life. In contrast to his predecessor, however, he was essentially limited to representative tasks. ==Marriage and children==