Maya Bay in Phi Phi was used as the location of the beach in the movie but the actual inspiration for the book is rumoured to be Haad Tien on Koh Phangan, in the Gulf of Thailand, specifically the hippy community that started up in 1990 - the year the book is set - and evolved into The Sanctuary resort.