Cook discovered the islands during his third voyage. He named them the "Sandwich Islands" in honor of John Montagu, 4th Earl of Sandwich, who was one of his sponsors as the First Lord of the Admiralty. The name was in use until the 1840s, when the local name "Hawaii" gradually began to take precedence.