In 1800, France's Napoleon Bonaparte reacquired Louisiana from Spain in the Treaty of San Ildefonso, an arrangement kept secret for some two years. Documents have revealed that he harbored secret ambitions to reconstruct a large colonial empire in the Americas. This notion faltered, however, after the French attempt to reconquer Saint-Domingue after its revolution ended in failure, with the loss of two-thirds of the more than 20,000 troops sent to the island to suppress the revolution. After French withdrawal in 1803, Haiti declared its independence in 1804 as the second republic in the Western Hemisphere.