You can remember the meaning of 海盗 with this easy mnemonic:
Pirates roam the sea (海) and steal (盗) everything they come across.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.