A Somali suspect who became the boyish face of 21st-century piracy by staging a brazen high-seas attack on a US-flagged ship off the coast of Africa pleaded guilty to charges he hijacked the ship and kidnapped its captain.

Abdiwali Abdiqadir Muse has been jailed in Manhattan since he was captured last year and faced what was called the first US piracy prosecution in decades.

"What we did was wrong," a subdued Muse said through an interpreter. "I am very, very sorry about what we did. All of this was about the problems in Somalia."

He also pleaded guilty to hostage-taking and conspiracy. He faces a minimum of 27 years in prison. Sentencing was set for October 19.

Prosecutors branded Muse the ringleader of a band of four pirates who provoked a deadly drama by targeting the Maersk Alabama on April 8, 2009, as it transported humanitarian supplies about 280 miles off the coast of Somalia.

The case could be the first of several piracy prosecutions in US courts. It is part of a larger US policy debate over how best to deal with the insurgents and criminal activities that contribute to the persistent instability in Somalia, a poor and chaotic country that's become a haven for al Qaida-linked terrorists.

In the Maersk Alabama case, a criminal complaint said Muse was the first to board the ship, firing his AK-47 assault rifle at the captain, Richard Phillips. He entered the bridge, told the captain to stop the ship and "conducted himself as the leader of the pirates," the complaint said.

Muse, reading from a prepared statement, told the judge that his crew had not intentionally targeted an American vessel. The four pirates "agreed to capture any ship that we found on the Indian Ocean," he said.

The pirates held Capt Phillips hostage for several days on a sweltering, enclosed lifeboat that was soon shadowed by three US warships and a helicopter.

During hostage negotiations, Muse said, the pirates tried to cut a deal: "They get the captain back and they let us go back to land safely. If not we will harm the captain."

The end came when Navy sharpshooters on the USS Bainbridge picked off the three pirates in a stunning nighttime operation, leaving Capt Phillips untouched.

"I thought the pirates were shooting one another, and I was caught in the crossfire," Capt Phillips later wrote in a book about his ordeal. "They'd been arguing, and it had escalated to gunfire. And now, after days of heat, punishment and threats, there was complete silence.

"All of a sudden I heard a voice. A male American voice. 'Are you OK?' it said."

After being swept into a federal court into New York, the skinny, 5ft 2in defendant looked bewildered and sometimes wept in court. His age was in dispute from the start: his lawyers insisted he was 15 and should be tried as a juvenile; prosecutors convinced a judge he was at least 18.

Back in Somalia, Muse's parents insisted he was tricked into getting involved in piracy. His mother said he was "wise beyond his years" and never a troublemaker.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.