By 1848 the area that would be later organized as the 48 contiguous states was acquired by treaties with European Great Powers and Mexico (although many Native Americans would dispute the legality of these arrangements). This was followed by the purchase of Alaska in 1867 and annexations of various Pacific islands (most notably, Hawaii in 1898). Continental expansion of the US involved four major conflicts, taking place between 1785 and 1848