Marooning

Marooning is the act of leaving someone behind intentionally in an uninhabited area.

It was usually a penalty for captains of pirate vessels by an angry crew. Pirates themselves may have used marooning as well, and certainly do so quite frequently in fiction.