On February 25, Theodore Roosevelt cabled naval commanders in the Pacific to prepare for military action against Spain. President McKinley ordered most of the cables undone, but he did leave Admiral George Dewey. Dewey was told to attack the Spanish fleet in the Philippines if the U.S. went to war with Spain.