The city of Lihue, on the island's southeast side, is the seat of Kauai County. It has a population of around 6,500, and is the main city on the island. Waimea, which is located on the island's southwest side and the first capital of Kauai, was the first place visited by Englishexplorer Captain James Cook in 1778. It was also the first capital of Kauai. The city is at the head of one of the most beautiful canyons in the world, Waimea Canyon, whose gorge is 900 meters (3,000 feet) deep.