Who did Guatemala get their independence from?

Guatemala gained independence from Spain on September 21, 1981. Guatemala declared itself a sovereign republic in 1847 following decades in fighting.