The 21-gun salute is the most senior of the gun-salute honors used in modern state protocol, reserved for heads of state, reigning monarchs, and the national flag on designated occasions. Lower counts (19, 17, 15, etc., always odd numbers) are graded down the protocol ladder for heads of government, ambassadors, and other officials, a hierarchy formalized in the 19th century when the British Royal Navy standardized the practice and other navies followed.
Its origins are naval. Warships entering a friendly port discharged their guns to render themselves temporarily harmless, and the host shore battery answered. Because early ship guns were single-shot and slow to reload, an empty broadside was a credible token of peaceful intent. Over time the gesture migrated ashore and became a fixed element of arrival ceremonies, state funerals, and national days.
In contemporary diplomatic practice, the salute is fired by a designated ceremonial battery — for example, the U.S. Army's Presidential Salute Battery at Fort Myer, or the King's Troop Royal Horse Artillery in the United Kingdom — usually at five-second intervals while the visiting dignitary's national anthem is played and the relevant flag is displayed. The salute typically accompanies the official arrival ceremony on the South Lawn of the White House, at Horse Guards Parade, or at equivalent venues elsewhere.
For practitioners, the salute matters less as spectacle than as a signal: the count rendered communicates the receiving state's reading of the guest's rank and the warmth of the visit. Downgrading from a state visit (full 21-gun honors, state dinner) to an official or working visit (reduced honors) is a deliberate diplomatic message. Conversely, extending full honors to a contested leader can itself be controversial, as when host governments must decide how to receive figures whose legitimacy is disputed by part of the international community.
Example
When French President Emmanuel Macron made a state visit to Washington in December 2022, he was received on the South Lawn with a 21-gun salute as the first state visit of the Biden administration.