In One Piece, the Navy is the force that is directly opposed to the pirates of the world, issuing bounties on them and trying their hardest to stop them at every turn, however they can. The fact that they, as a branch of the World Government, have existed for 800 years truly does show that they have more often been successful in putting down the threat of pirates for the longest time.