Somalia doesn't have pirates -- but they have lots and lots of terrorists.
Every third world country with substantial coastline(maybe excepting Vietnam) has pirates. Some have terrorists also.