In 1809, the Spanish town of Huéscar declared war on Denmark, then forgot about it for 172 years. Not a single shot was fired, no one was killed, and a peace treaty was finally signed in 1981 when a historian randomly found the official declaration and realized they were supposed to be fighting. Source