After the fall of the Incas, the desert came under Spanish rule. In the 19th century, the desert came under the control of Bolivia, Chile and Peru. With the discovery of sodium nitrate deposits, the area became a conflict zone and led to the War of the Pacific (Spanish: Guerra del Pacífico). Subsequently, Chile annexed most of the desert, and cities along the coast developed into international ports.