Cuba obtained independence from Spain in the aftermath of the Spanish American War which came to an end in December of 1898.