The son of a Sardinian admiral, Mameli was born in Genoa where his father was in command of the fleet of the kingdom of Sardinia. At the age of seven he was sent to Sardinia, to his grandfather's, to escape the risk of cholera, but soon came back to Genoa to complete his studies.
The achievements of Mameli's very short life are concentrated in only two years, during which time he played major parts in insurrectional movements and the Risorgimento.
Mameli is mostly known as the author of the lyrics of the Italian national anthem, Fratelli d'Italia (music by Michele Novaro). These lyrics were used for the first time in November 1847, celebrating King Charles Albert in his visit to Genoa after his first reforms.
Mameli was deeply involved in nationalistic movements and some more "spectacular" actions are remembered, such as his exposition of the Tricolore (current Italian flag, then prohibited) to celebrate the expulsion of Germans in 1846. Yet, he was with Nino Bixio (Garibaldi's later major supporter and friend) in a committee for public health, already on a clear Mazzinian position. In March 1848, hearing of the insurrection in Milan, Mameli organised an expedition with 300 other patriots, joined Bixio's troops that were already on site, and entered the town. He was then admitted in Garibaldi's irregular army (really the volunteer brigade of general Torres), as a captain, and met Mazzini.
Back in Genoa, he worked more on a literary side, wrote several hymns and other compositions, he became the director of the newspaper Diario del Popolo (People's Daily), and promoted a press campaign for a war against Austria. In December 1848 Mameli reached Rome, where Pellegrino Rossi had been murdered, helping in the clandestine works for declaration (February 9, 1849) of the Roman republic. Mameli then went to Florence where he proposed the creation of a common state between Tuscany and Latium.
In April 1849 he was again in Genoa, with Bixio, where a popular insurrection was strongly opposed by General Alberto La Marmora . Mameli soon left again for Rome, where the French had come to support the Papacy (Pope Pius IX had actually escaped from the town) and took active part in the combat.
In June, Mameli was accidentally injured in his left leg by the bayonet of one of his comrades; the wound was not really serious, but an infection caught him and after a time the leg had to be amputated. Mameli could resist only a few days after the surgery, and died on July 7, at the age of 22.
- The Italian National Anthem in a historical recording by Mario del Monaco, on the website of Quirinale (Presidence of the Republic):  (click on "Ascolta l'Inno" and embedded buttons)