The correct answer is: A. declared

The viceroyalty of Peru over Chile for almost three centuries ended in 1818 when Chilean separatist forces declared an independent Chile. The other options are incorrect because they do not accurately reflect the timeline of events.

  • Option B, "has declared," is incorrect because it implies that the viceroyalty of Peru over Chile ended in the past. However, the viceroyalty did not end until 1818.
  • Option C, "was declaring," is incorrect because it implies that the viceroyalty of Peru over Chile was ending at the time of the declaration of independence. However, the viceroyalty did not end until after the declaration of independence.
  • Option D, "is declaring," is incorrect because it implies that the viceroyalty of Peru over Chile is ending at the present time. However, the viceroyalty ended in 1818.
  • Option E, "had declared," is incorrect because it implies that the viceroyalty of Peru over Chile ended in the past before the declaration of independence. However, the viceroyalty did not end until after the declaration of independence.