Ernest I, Duke of Saxe-Gotha (1601-75) had married Elisabeth Sophie, the only child of John Philip, Duke of Altenburg(1597-1638). Elisabeth Sophie's cousin Frederick William III, Duke of Altenburg, died unmarried 1672. He was the last male descendant of the first Saxe-Altenburg line.