Numerous other countries besides Spain had former territories or colonies rebel from their control. Here is an non-exhaustive listing of such countries and famous former colonies or territories:
UK: USA, India, Burma
France: Vietnam, Algeria
Portugal: Brazil
Russia: Ukraine, Georgia, Poland
Austria: Hungary, Croatia, Bosnia & Herzegovina
Ottoman Empire: Greece, Bulgaria, Serbia
Italy: Libya
Ethiopia: Eritrea
South Africa: Namibia
It fought against Spain for its independence.
The unwillingness of spain to modernize the country. The question is incredibly vague. Numerous countries have had wars of independence against Spain. Please resubmit with the name of the country.
Hungary against Austria in 1848-1849, and later against the Soviet Union in 1956. Both "rebellions" were put down.
The Spanish American war was fought for independence for Cuba in the 1900's.
New Mexico didn't fight for independence ever. It was an almost unpopulated province of Mexico while it fought for independence against Spain (1810-1821).
The unwillingness of Spain to modernize the country. The question is incredibly vague. Numerous countries have had wars of independence against Spain. Please resubmit with the name of the country.
Spain was the country that fought against the Rough Riders in the Battle of San Juan Hill.
Colombia fought for its independence from Spain in 1810, becoming an independent country 1819.
Paraguay fought for its independence from Spain in 1800, becoming an independent country in 1811.
Argentina fought for its independence from Spain in 1810, becoming an independent country in 1816.
Chile fought for its independence from Spain in 1810, becoming an independent country in 1818.
Since 1821 when it won its war of independence against Spain.