In the late 19th and early 20th centuries, coffee was used as fuel for locomotives in some parts of the world. Coffee grounds were burned in steam engines due to a shortage of coal or as an alternative during war times.