Wright served in Cuba during the Spanish–American War. Commissioned as a captain and assistant adjutant general in the U.S. Volunteers, he served in Cuba as aide-de-camp to Major General John C. Bates, commander of the 3rd Division. Wright took part in the Battle of El Caney and the other actions leading to the surrender of Santiago.