"Hotel California" was the title song from the Eagles' album of the same name, and was released as a single in early 1977. It is one of the best-known songs of the Album Oriented Rock era.
The lyrics of the song describe the title establishment, a hotel where "you can check out anytime you like, but you can never leave".
On the surface, the song is a tale of a weary traveler who becomes trapped in a nightmarish hotel that at first appeared tempting; as a metaphor the song may be commenting on drug addiction or simply the decadent lifestyle the hugely successful band had been caught up in.
Another theory is that the song is about a mental hospital or a federal prison. The expression "check out" is also considered a metaphor for dying.