He was eventually killed in a battle with Lieutenant Robert Maynard who cut off his head and hung it from the bow of his ship as a warning to other pirates.
I can’t help thinking why we don’t treat the Somali pirates like this. Thomas Jefferson, third US President treated the Barbary pirates that way. Piracy has always been considered a crime against civilization. Therefore, pirates never got normal legal protections.