During the course of the Ecuadorian–Peruvian War, Peru gained control over part of the disputed territory and some parts of the province of El Oro, and some parts of the province of Loja, demanding that the Ecuadorian government give up its territorial claims. The Peruvian Navy blocked the port of Guayaquil, almost cutting all supplies to the Ecuadorian troops. After a few weeks of war and under pressure by the United States and several Latin American nations, all fighting came to a stop. Ecuador and Peru came to an accord formalized in the Rio Protocol, signed on January 29, 1942, in favor of hemispheric unity against the Axis Powers in World War II favoring Peru with the territory they occupied at the time the war came to an end.