Why 21 Gun Salute?

The 21 gun salute is in honor of a national flag, a sovereign, a president, and various holidays. It was started because war ships would fire 7 shots in an honorary salute and land canons shot 3. The number was mutually agreed on and has remained so.