William was born the son of Prince Frederick of Württemberg (1808–1870) by his wife Princess Catherine Frederica of Württemberg (1821–1898), herself the daughter of King William I of Württemberg (1781–1864).