South Dakota was part of the Dakota Territory formed in 1861. It became a state in 1889, the 40th. In 1840 the area was included in the Iowa Census, in 1850 the Dakotas were included in the Minnesota census as the Pembina District, and in 1860, 1870 and 1880 there were Territorial Census reports and in 1900 there was a Federal Census.