"Massachusetts" was reassigned to the Flying Squadron in March 1898 and operated with that squadron off Cuba after the Spanish–American War broke out in April 1898.Although "Massachusetts" was away coaling and missed the climactic Battle of Santiago de Cuba, Bayley distinguished himself in other actions off Cuba and was advanced two numbers for "eminent and conspicuous conduct in battle" during his time aboard her.