What country fought against the Rough Riders in the Battle of San Juan Hill?

Spain was the country that fought against the Rough Riders in the Battle of San Juan Hill.