South Korean navy commandos have stormed a ship which had been seized by pirates in the Arabian Sea.
All 21 crew members of the South Korean-owned Samho Jewelry were rescued, said Col Lee Bung-woo, of the Joint Chiefs of Staff.
The navy said eight pirates had been killed and five captured.
South Korea is part of a multinational anti-piracy patrol in the area and had despatched a warship after the vessel was seized on Saturday.
The rescue raid took place about 1,300km (800 miles) off the coast of Somalia.
Col Lee said the captain of the ship had suffered a gunshot wound to the stomach, the Yonhap news agency reported, but his condition was not life-threatening.
The 11,500-tonne Samho Jewelry was carrying chemicals from the United Arab Emirates towards Sri Lanka when it was hijacked in the waters between Oman and India.
The Gulf of Aden, between Yemen and Somalia, is one of the world's busiest shipping routes and has become a hotspot for pirate attacks.