By the late 19th century, 50% of the Peruvian government's revenue was going to pay off loans that been guaranteed with guano sources taken by Chile - these debts were eventually paid by sending all the remaining guano to France when it was preparing for war.