Margottini was born in Rome in 1899, and attended the Italian Naval Academy from 1913 to 1916, graduating with the rank of Ensign. He participated in the First World War, first serving on the battleshipConte di Cavour, then on the scout cruiserNibbio and on torpedo boats. In May 1917 he was promoted to Sub-Lieutenant and in November 1918 to Lieutenant, becoming aide to Admiral Enrico Millo, governor of Dalmatia. In 1927 he was promoted to Lieutenant Commander and in 1933 to Commander; he was given command of the Aegean Submarine Group and later of a torpedo boat squadron. In 1936 he participated in the London Naval Conference, as a military expert, on behalf of the Italian government. During the Spanish Civil War, in command of the heavy cruiserFiume, he participated in the occupation of Ibiza and Mallorca and contributed to the political and military reorganization of Balearic Islands, being awarded the Knight's Cross of the Military Order of Savoy. On returning from the Spain, he was promoted to Captain and appointed Naval Attache in Paris. At the outbreak of World War II, Margottini was the commanding officer of the 11th Destroyer Squadron, with flag on the destroyerArtigliere. On 9 July 1940 he participated in the Battle of Calabria, where he led his Squadron in a gun and torpedo attack on the British fleet, receiving for this action the Bronze Medal of Military Valor. In the following months he carried out several missions from Messina and Augusta. On 11 October 1940, he took to the sea with the ships of his squadron to carry out a night search for a British naval force reported in the Sicilian Channel, in cooperation with ships of the 1st Torpedo Boat Squadron. In the night engagement that followed, the 1st Torpedo Boat Squadron and the 11th Destroyer Squadron attacked separately, one after another, the British light cruiserAjax. The first attack was carried out by the torpedo boats, but was unsuccessful and resulted in the loss of the torpedo boats Airone and Ariel; shortly thereafter, the destroyers of the 11th Squadron attacked, but they found their enemy already on the alert. After sighting Ajax at 01:40, Artigliere attacked the opponent by launching a torpedo and firing two 100 mm salvoes. Ajax quickly returned fire, however, and hit Artigliere several times within a few minutes, starting a large fire in the bow, knocking out most of the machinery and armament, and killing or wounding over half of the crew. Captain Margottini was mortally wounded and died shortly thereafter at his command post on the bridge, while inciting his crew to fight on; his squadron assistant, Lieutenant Corrado Del Greco, was also killed. Both officers were posthumously awarded the Gold Medal of Military Valor. Artigliere was sunk later on that morning by the heavy cruiser HMS York, after an aborted towing attempt by her sistership Camicia Nera. The Marina Militare has named two ships after Carlo Margottini: a Bergamini-class frigate, in service from 1962 to 1988, and a FREMM multipurpose frigate completed in 2014.