The Battle of the Coral Sea, from May 4 to May 8, 1942, was the first naval battle in which the opposing ships never saw each other—the fighting was all done by aircraft—and it was the first Pacific contest where code breaking played a key role in the outcome.