The three major tasks of the Confederate States Navy during its existence were the protection of Confederate harbors and coastlines from outside invasion, making the war costly for the United States by attacking its merchant ships worldwide, and running the U.S. blockade by drawing off Union ships in pursuit of Confederate commerce raiders and warships.