An ice cube is a small, roughly cube-shaped piece of ice (frozen water), conventionally used to cool beverages. Ice cubes are sometimes preferred over crushed ice because they melt more slowly; they are standard in mixed drinks that call for ice, in which case the drink is said to be "on the rocks."
American physician and humanitarian John Gorrie built a refrigerator in 1844 with the purpose of cooling air. His refrigerator produced ice which he hung from the ceiling in a basin. Gorrie can be considered the creator of ice cubes, but his aim was not to cool drinks: he used the ice to lower the ambient room temperature. During his time, a dominant idea was that bad air quality caused disease. Therefore, in order to help treat sickness, he pushed for the draining of swamps and the cooling of sickrooms.
Ice cubes are produced domestically by filling an ice cube tray with water and placing it in a freezer. Many freezers also come equipped with an icemaker, which produces ice cubes automatically and stores them in a bin from which they can be dispensed directly into a glass.