The hammock is a fabric sling use for sleeping or resting. It consists of cloth or a network of twine or thin natural or synthetic rope which is stretched between two firm points such as trees or attached to a metal or wood structure. Hammocks are widely used for relaxation in backyards, cottages, and waterfront areas, and they are carried as a lightweight type of bed on camping trips. They are also used for sleeping on ships and spacecraft.