By 1817, the Chilean War of Independence had entered its final phase, and there was little doubt that its final goal, national independence, would be realized. Even though Chile had been operating independently from Spain for several years, no formal declaration of independence had yet been produced.