<P> War in the context of this list broadly construed to be armed conflict between organized U.S. military forces and organized forces of (a) belligerent (s). </P> <Table> <Tr> <Th> </Th> <Th> War </Th> <Th> Dates </Th> <Th> Duration </Th> <Th> Duration (graphical representation) </Th> </Tr> <Tr> <Td> 1 . </Td> <Td> War in Afghanistan </Td> <Td> 2001 / 10--present </Td> <Td> 16.1 years (16 years) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 2 . </Td> <Td> Moro Rebellion </Td> <Td> 1899--1913 </Td> <Td> 14 years </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 3 . </Td> <Td> Northwest Indian War </Td> <Td> 1785--1795 </Td> <Td> 10 years </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 4 . </Td> <Td> Iraq War </Td> <Td> 2003 / 03--2011 / 12 </Td> <Td> 8.8 years (8 years, 9 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 5 . </Td> <Td> American Revolutionary War </Td> <Td> 1775 / 04--1783 / 09 </Td> <Td> 8.4 years (8 years, 5 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 6 . </Td> <Td> Vietnam War </Td> <Td> 1965 / 03--1973 / 04 </Td> <Td> 8.1 years (8 years, 1 month) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 7 . </Td> <Td> Second Seminole War </Td> <Td> 1835 / 12--1842 / 08 </Td> <Td> 6.7 years (6 years, 7 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 8 . </Td> <Td> First Barbary War </Td> <Td> 1801 / 05--1805 / 06 </Td> <Td> 4.1 years (4 years, 1 month) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 9 . </Td> <Td> American Civil War </Td> <Td> 1861 / 04--1865 / 04 </Td> <Td> 4 years </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 10 . </Td> <Td> World War II </Td> <Td> 1941 / 12--1945 / 08 </Td> <Td> 3.7 years (3 years, 8 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 11 . </Td> <Td> War on ISIL </Td> <Td> 2014 / 06--present </Td> <Td> 3.4 years (3 years, 4 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 12 . </Td> <Td> Korean War </Td> <Td> 1950 / 06--1953 / 07 </Td> <Td> 3.1 years (3 years, 1 month) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 13 . </Td> <Td> War of 1812 </Td> <Td> 1812 / 06--1814 / 12 </Td> <Td> 2.5 years (2 years, 6 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 14 . </Td> <Td> Red Cloud's War </Td> <Td> 1866 / 07--1868 / 04 </Td> <Td> 1.8 years (1 year, 9 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 15 . </Td> <Td> Mexican - American War </Td> <Td> 1846 / 04--1848 / 02 </Td> <Td> 1.8 years (1 year, 9 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 16 . </Td> <Td> World War I </Td> <Td> 1917 / 04--1918 / 11 </Td> <Td> 1.6 years (1 year, 7 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 17 . </Td> <Td> Great Sioux War of 1876 </Td> <Td> 1876 / 02--1877 / 05 </Td> <Td> 1.2 years (1 year, 3 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 18 . </Td> <Td> Persian Gulf War </Td> <Td> 1990 / 08--1991 / 02 </Td> <Td> 0.5 years (7 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 19 . </Td> <Td> Whiskey Rebellion </Td> <Td> 1794 / 05--1794 / 10 </Td> <Td> 0.4 years (5 months) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 20 . </Td> <Td> Spanish--American War </Td> <Td> 1898 / 04--1898 / 08 </Td> <Td> 0.3 years (114 days) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 21 . </Td> <Td> Kosovo War </Td> <Td> 1999 / 03--1999 / 06 </Td> <Td> 0.2 years (79 days) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td> 22 . </Td> <Td> Invasion of Panama </Td> <Td> 1989 / 12--1990 / 01 </Td> <Td> 0.1 years (42 days) </Td> <Td> <Table> <Tr> <Td> </Td> </Tr> </Table> </Td> </Tr> </Table> <Tr> <Th> </Th> <Th> War </Th> <Th> Dates </Th> <Th> Duration </Th> <Th> Duration (graphical representation) </Th> </Tr>

What is the longest war in us history