The longest war in history is believed to be the Reconquista (Spanish for Reconquest), with a duration of 781 years.