Which famous pirate was the first ship commander to successfully circumnavigate the world?

The first person to circumnavigate the world was Magellan, but he was not a pirate. He was killed in the Philippines, but his ships made it home to England.