On his last voyage, Cook once again commanded HMS Resolution, while Captain Charles Clerke commanded HMS Discovery. Ostensibly the voyage was planned to return Omai to Tahiti; this is what the general public believed, as he had become a favourite curiosity in London. Principally the purpose of the voyage was an attempt to discover the famed Northwest Passage. After returning Omai, Cook travelled north and in 1778 became the first European to visit the Hawaiian Islands. In passing and after initial landfall in January 1778 at Waimea harbour, Kauai, Cook named the archipelago the "Sandwich Islands" after the fourth Earl of Sandwich, the acting First Lord of the Admiralty.
From the South Pacific, he went northeast to explore the west coast of North America north of the Spanish settlements in Alta California. He made landfall at approximately 44°30′ north latitude, near Cape Foulweather on the Oregon coast, which he named. Bad weather forced his ships south to about 43° north before they could begin their exploration of the coast northward.[23] He unknowingly sailed past the Strait of Juan de Fuca, and soon after entered Nootka Sound on Vancouver Island. He anchored near the First Nations village of Yuquot. Cook's two ships spent about a month in Nootka Sound, from 29 March to 26 April 1778, in what Cook called Ship Cove, now Resolution Cove,[24] at the south end of Bligh Island, about 5 miles (8.0 km) east across Nootka Sound from Yuquot, a Nuu-chah-nulth village (whose chief Cook did not identify but may have been Maquinna). Relations between Cook's crew of the people of Yuquot were cordial if sometimes strained. In trading, the people of Yuquot demanded much more valuable items than the usual trinkets that had worked for Cook's crew in Hawaii. Metal objects were much desired, but the lead, pewter, and tin traded at first soon fell into disrepute. The most valuable items the British received in trade were sea otter pelts. Over the month long stay the Yuquot "hosts" essentially controlled the trade with the British vessels, instead of vice versa. Generally the natives visited the British vessels at Resolution Cove instead of the British visiting the village of Yuquot at Friendly Cove.[25]
After leaving Nootka Sound, Cook explored and mapped the coast all the way to the Bering Strait, on the way identifying what came to be known as Cook Inlet in Alaska. It has been said that, in a single visit, Cook charted the majority of the North American northwest coastline on world maps for the first time, determined the extent of Alaska and closed the gaps in Russian (from the West) and Spanish (from the South) exploratory probes of the Northern limits of the Pacific.[10]
The Bering Strait proved to be impassable, although he made several attempts to sail through it. He became increasingly frustrated on this voyage, and perhaps began to suffer from a stomach ailment; it has been speculated that this led to irrational behaviour towards his crew, such as forcing them to eat walrus meat, which they found inedible.[26]
Cook returned to Hawaiʻi in 1779. After sailing around the archipelago for some eight weeks, he made landfall at Kealakekua Bay, on 'Hawaiʻi Island', largest island in the Hawaiian Archipelago. Cook's arrival coincided with the Makahiki, a Hawaiian harvest festival of worship for the Polynesian god Lono. Indeed the form of Cook's ship, HMS Resolution, or more particularly the mast formation, sails and rigging, resembled certain significant artefacts that formed part of the season of worship.[4][26] Similarly, Cook's clockwise route around the island of Hawai'i before making landfall resembled the processions that took place in a clockwise direction around the island during the Lono festivals. It has been argued (most extensively by Marshall Sahlins) that such coincidences were the reasons for Cook's (and to a limited extent, his crew's) initial deification by some Hawaiians who treated Cook as an incarnation of Lono.[27] Though this view was first suggested by members of Cook's expedition, the idea that any Hawaiians understood Cook to be Lono, and the evidence presented in support of it was challenged in 1992.[26]
Waimea on the island of Kauai, as seen from the ocean. Waimea was Cook's first landing point in Hawaiʻi in 1778.
After a month's stay, Cook got under sail again to resume his exploration of the Northern Pacific. However, shortly after leaving Hawaiʻi Island, the foremast of the Resolution broke and the ships returned to Kealakekua Bay for repairs. It has been hypothesised that the return to the islands by Cook's expedition was not just unexpected by the Hawaiians, but also unwelcome because the season of Lono had recently ended (presuming that they associated Cook with Lono and Makahiki). In any case, tensions rose and a number of quarrels broke out between the Europeans and Hawaiians. On 14 February at Kealakekua Bay, some Hawaiians took one of Cook's small boats. Normally, as thefts were quite common in Tahiti and the other islands, Cook would have taken hostages until the stolen articles were returned.[4] Indeed, he attempted to take hostage the King of Hawaiʻi, Kalaniʻōpuʻu. The Hawaiians prevented this, and Cook's men had to retreat to the beach. As Cook turned his back to help launch the boats, he was struck on the head by the villagers and then stabbed to death as he fell on his face in the surf.[28] Hawaiian tradition says that he was killed by a chief named Kalanimanokahoowaha.[29] The Hawaiians dragged his body away. Four of the Marines with Cook were also killed and two wounded in the confrontation.
The esteem in which he was nevertheless held by the Hawaiians resulted in his body being retained by their chiefs and elders. Following the practice of the time, Cook's body underwent funerary rituals similar to those reserved for the chiefs and highest elders of the society. The body was disembowelled, baked to facilitate removal of the flesh, and the bones were carefully cleaned for preservation as religious icons in a fashion somewhat reminiscent of the treatment of European saints in the Middle Ages. Some of Cook's remains, disclosing some corroborating evidence to this effect, were eventually returned to the British for a formal burial at sea following an appeal by the crew.[31]
Clerke took over the expedition and made a final attempt to pass through the Bering Strait. Following the death of Clerke, Resolution and Discovery returned home in October 1780 commanded by John Gore, a veteran of Cook's first voyage, and Captain James King. Cook's account of his third and final voyage was completed upon their return by King.