When was Peru established?

The Republic of Peru was founded on July 28, 1821. The capital of Peru is Lima, and the motto of the country is 'Firm and Happy for the Union.'