Ernest, Hereditary Prince of Saxe-Coburg-Saalfeld, was born at Ehrenburg Palace in Coburg on 21 June 1818. He was the elder son of Ernest III, Duke of Saxe-Coburg-Saalfeld (later Ernest I, Duke of Saxe-Coburg and Gotha) and his first wife Princess Louise of Saxe-Gotha-Altenburg. He was soon joined by a brother, Prince Albert, who would later become the husband of Queen Victoria. Though Duke Ernest fathered numerous children in various affairs, the two boys would have no other legitimate siblings. In 1826, their father succeeded as Ernest I, Duke of Saxe-Coburg and Gotha through an exchange of territories after the death of the duke's uncle, Frederick IV, Duke of Saxe-Gotha-Altenburg.