Matthew Perry was the son of Sarah Wallace (Alexander) and Navy Captain Christopher R. Perry and the younger brother of Oliver Hazard Perry.
Perry's early career saw him assigned to several ships, including the (where he served as an aide to Commodore John Rodgers (1772-1838)) which had been in a victorious engagement over a British vessel, , shortly before the War of 1812 was officially declared.