The Nez Perce War was a conflict that took place between 1877 and 1878, primarily involving the Nez Perce tribe and the United States government. This war emerged from the U.S. government's attempts to forcibly relocate the Nez Perce from their ancestral lands in Oregon to a reservation in Idaho, which led to a series of battles and retreats as the tribe sought to escape this injustice.