A pipe's fundamental function is to provide a relatively safe, manipulable volume in which to incompletely combust tobacco (and/or other smokable substances) while allowing the smoke drawn from this combustion to cool sufficiently for inhalation by the smoker.
Unusual, but still noteworthy pipe materials include gourds, as in the famous calabash pipe, and pyrolytic graphite.