For as long as ships have sailed the sea, there have been pirates. Ancient Egypt and Greece, the Romans, Medieval kings, and the British Empire dealt with pirates. Fighting pirates has sometimes been one of the most important roles of a navy.