Still with the 3rd Infantry Regiment at the outbreak of the Spanish–American War, Kennedy saw action in Cuba and took part in the Battle of El Caney. After the Spanish defeat in 1898, Kennedy returned to the United States to take part in campaigns against the Leech Lake Indians in the fall of the same year, this time with the 8th Infantry.