In the 1870s, when gold was discovered in the Blacks Hills, the federal government first tried to buy the land from the native Americans.
However, the natives believed that it was their right to stay on the land, and would not leave, and so the US used military force to get what they wanted.
hope this helps