Thomas Edison was born in Milan, Ohio, and grew up in Port Huron, Michigan. He was the seventh and last child of Samuel Ogden Edison Jr. (1804–1896, born in Marshalltown, Nova Scotia) and Nancy Matthews Elliott (1810–1871, born in Chenango County, New York). His father, the son of a Loyalist refugee, had moved as a boy with the family from Nova Scotia, settling in southwestern Ontario (then called Upper Canada), in a village known as Shewsbury, later Vienna, by 1811. Samuel Jr. eventually fled Ontario, because he took part in the unsuccessful Mackenzie Rebellion of 1837. His father, Samuel Sr., had earlier fought in the War of 1812 as captain of the First Middlesex Regiment. By contrast, Samuel Jr.'s struggle found him on the losing side, and he crossed into the United States at Sarnia-Port Huron. Once across the border, he found his way to Milan, Ohio. His patrilineal family line was Dutch by way of New Jersey; the surname had originally been "Edeson."