The Naval campaign of the War of the Pacific or Saltpeter war, was a naval campaign that took place from 1879 to 1884, involving Peru (as well as Bolivia), and Chile, undertaken in order to support land forces in the Atacama Desert. Although the conflict lasted until 1884, the primary naval engagements occurred between 1879 and 1880. Due to the rough terrain and few transport methods it was imperative to have control of the ports in order to have a good supply source in the region. It resulted in a successful campaign by Chile, and the success of their land campaigns eventually led to a Chilean victory, which cut off Bolivia's access to the coast.