Cabin Fever is a condition that produces restlessness and irritability caused from being in a confined space. The actual word is a slang term for a claustrophobic reaction that takes place when a party is isolated and/or shut in together for an extended period of time.
The term possibly originated in the United States at the time when settlers would be snowed in to their log cabins and had to wait for the spring thaw in order to travel to town. Another possible source for this phrase could be that during an outbreak of some disease, people who had a fever were confined to a cabin as a quarantine. Most likely, the phrase may be associated with ocean-crossing sailing ships in which passengers had to endure weeks and months of slow travel while living in cramped cabins below deck.