A privateer was a private warship authorize by a country's government by letters of marque to attack foreign shipping. Privateering is often described as a form of "legal" piracy. Strictly, a privateer was only entitled to attack and rob enemy vessels during wartime. However, states often encouraged attacks on opposing powers while at peace, or on neutral vessels during time of war, blurring the line between privateering and piracy.