The Chamoru people settled the island approximately 3,500 years ago. Portuguese explorer Ferdinand Magellan, while in the service of Spain, was the first European to visit the island on March 6, 1521. Guam was colonized by Spain in 1668. Between the 16th and 18th centuries, Guam was an important stopover for the Spanish Manila Galleons. During the Spanish–American War, the United States captured Guam on June 21, 1898. Under the Treaty of Paris, signed December 10, 1898, Spain ceded Guam to the U.S. effective April 11, 1899.