People have lived here for at least 2,500 years, probably arriving from southern India. They built in wood and palm fronds, so little survives. Buddhism was the main religion until the 12th century, and nearly every archaeological site you hear about, such as the monastery at Kaashidhoo, is a Buddhist stupa or monastery.
The last Buddhist king, Dhovemi, converted to Islam in 1153 (some sources say 1193). The islands were a link on Indian Ocean trade routes, selling cowrie shells and coir, the fibre of the coconut husk. The traveller Ibn Battuta spent nine months here between 1341 and 1345, serving as chief judge.
The Portuguese set up a garrison in 1558 and tried to force Christianity on the islanders. A revolt led by Muhammad Thakurufaanu drove them out about fifteen years later, and the Maldives still marks it as National Day. Dutch influence followed, then a British protectorate, recorded in an 1887 agreement. Independence came on 26 July 1965 and the republic on 11 November 1968.
Tourism began in 1972, when Kurumba took its first guests. A UN mission in the 1960s had not recommended it. Since 2009 tourists may also stay in guesthouses on local islands. Politics were rougher: Maumoon Abdul Gayoom ruled for 30 years from 1978, and Indian troops ended a coup attempt in 1988. Free elections came only in 2008. The tsunami of December 2004 affected over a third of the 290,000 people then living here, and about 80% of the country lies one metre or less above sea level.