Piracy can mean different things; it can be a crime that is committed. A human on a ship at sea is called a pirate and usually has small, fast boats. Pirates use such boats to attack other ships, which are usually large cargo ships.
The Jolly Roger flag is a well known symbol of pirates