When did Peru gain it's independence from Spain?

Peru gained independence from Spain on July 28th 1821