Usually, during smoking, the ash is an unwanted product that is to be disposed of. An ashtray is used to dispose of ashes and butts without creating a fire hazard. Once it is certain that any burning has been extinguished, the ashtray contents are disposed of.