Question: when did costa rica gain independence from spain
Answer: Independence from Spain was acknowledged and ratified on October 29 , 1821 by the colonial authorities .