Coke is a fuel with few impurities and a high carbon content, usually made from coal. It is the solid carbonaceous material derived from destructive distillation of low-ash, low-sulphur bituminous coal. Cokes made from coal are grey, hard, and porous. While coke can be formed naturally, the commonly used form is synthetic. The form known as petroleum coke, or pet coke, is derived from oil refinery coker units or other cracking processes.
Coke is used in preparation of producer gas which is a mixture of carbon monoxide (CO) and nitrogen (N2). Producer gas is produced by passing air over red-hot coke. Coke is also used to manufacture water gas.
Historical sources dating to the 4th century describe the production of coke in ancient China. The Chinese first used coke for heating and cooking no later than the ninth century. By the first decades of the eleventh century, Chinese ironworkers in the Yellow River valley began to fuel their furnaces with coke, solving their fuel problem in that tree-sparse region.
In 1589, a patent was granted to Thomas Proctor and William Peterson for making iron and steel and melting lead with "earth-coal, sea-coal, turf, and peat". The patent contains a distinct allusion to the preparation of coal by "cooking". In 1590, a patent was granted to the Dean of York to "purify pit-coal and free it from its offensive smell". In 1620, a patent was granted to a company composed of William St. John and other knights, mentioning the use of coke in smelting ores and manufacturing metals. In 1627, a patent was granted to Sir John Hacket and Octavius de Strada for a method of rendering sea-coal and pit-coal as useful as charcoal for burning in houses, without offense by smell or smoke.
In 1603, Hugh Plat suggested that coal might be charred in a manner analogous to the way charcoal is produced from wood. This process was not employed until 1642, when coke was used for roasting malt in Derbyshire; previously, brewers had used wood, as uncoked coal cannot be used in brewing because its sulfurous fumes would impart a foul taste to the beer. It was considered an improvement in quality, and brought about an "alteration which all England admired"—the coke process allowed for a lighter roast of the malt, leading to the creation of what by the end of the 17th century was called pale ale.
In 1709, Abraham Darby I established a coke-fired blast furnace to produce cast iron. Coke's superior crushing strength allowed blast furnaces to become taller and larger. The ensuing availability of inexpensive iron was one of the factors leading to the Industrial Revolution. Before this time, iron-making used large quantities of charcoal, produced by burning wood. As the coppicing of forests became unable to meet the demand, the substitution of coke for charcoal became common in Great Britain, and coke was manufactured by burning coal in heaps on the ground so that only the outer layer burned, leaving the interior of the pile in a carbonized state. In the late 18th century, brick beehive ovens were developed, which allowed more control over the burning process.
In 1768, John Wilkinson built a more practical oven for converting coal into coke. Wilkinson improved the process by building the coal heaps around a low central chimney built of loose bricks and with openings for the combustion gases to enter, resulting in a higher yield of better coke. With greater skill in the firing, covering and quenching of the heaps, yields were increased from about 33% to 65% by the middle of the 19th century. The Scottish iron industry expanded rapidly in the second quarter of the 19th century, through the adoption of the hot-blast process in its coalfields.
In 1802, a battery of beehives was set up near Sheffield, to coke the Silkstone seam for use in crucible steel melting. By 1870, there were 14,000 beehive ovens in operation on the West Durham coalfields, capable of producing 4,000,000 tons of coke. As a measure of the extent of the expansion of coke making, it has been estimated that the requirements of the iron industry were about 1,000,000 tons a year in the early 1850s, whereas by 1880 the figure had risen to 7,000,000, of which about 5,000,000 were produced in Durham county, 1,000,000 in the South Wales coalfield, and 1,000,000 in Yorkshire and Derbyshire.
In the first years of steam railway locomotives, coke was the normal fuel. This resulted from an early piece of environmental legislation; any proposed locomotive had to "consume its own smoke". This was not technically possible to achieve until the firebox arch came into use, but burning coke, with its low smoke emissions, was considered to meet the requirement. This rule was quietly dropped, and cheaper coal became the normal fuel, as railways gained acceptance among the public.
In the US, the first use of coke in an iron furnace occurred around 1817 at Isaac Meason's Plumsock puddling furnace and rolling mill in Fayette County, Pennsylvania. In the late 19th century, the coalfields of western Pennsylvania provided a rich source of raw material for coking. In 1885, the Rochester and Pittsburgh Coal and Iron Company constructed the world's longest string of coke ovens in Walston, Pennsylvania, with 475 ovens over a length of 2 km (1.25 miles). Their output reached 22,000 tons per month. The Minersville Coke Ovens in Huntingdon County, Pennsylvania, were listed on the National Register of Historic Places in 1991.
Between 1870 and 1905, the number of beehive ovens in the US skyrocketed from about 200 to almost 31,000, which produced nearly 18,000,000 tons of coke in the Pittsburgh area alone. One observer boasted that if loaded into a train, “the year's production would make up a train so long that the engine in front of it would go to San Francisco and come back to Connellsville before the caboose had gotten started out of the Connellsville yards!” The number of beehive ovens in Pittsburgh peaked in 1910 at almost 48,000.
Although it made a top-quality fuel, coking poisoned the surrounding landscape. After 1900, the serious environmental damage of beehive coking attracted national notice, although the damage had plagued the district for decades. “The smoke and gas from some ovens destroy all vegetation around the small mining communities,” noted W. J. Lauck of the U.S. Immigration Commission in 1911. Passing through the region on train, University of Wisconsin president Charles van Hise saw “long rows of beehive ovens from which flame is bursting and dense clouds of smoke issuing, making the sky dark. By night the scene is rendered indescribably vivid by these numerous burning pits. The beehive ovens make the entire region of coke manufacture one of dulled sky: cheerless and unhealthful." 
Volatile constituents of the coal—including water, coal-gas, and coal-tar—are driven off by baking in an airless furnace or oven (kiln) at temperatures as high as 2,000 °C (3,600 °F) but usually around 1,000–1,100 °C (1,800–2,000 °F). This fuses together the fixed carbon and residual ash. Some facilities have "by-product" coking ovens in which the volatile hydrocarbons are mainly used, after purification, in a separate combustion process to generate energy. Non by-product coking furnaces or coke furnaces (ovens) burn the hydrocarbon gases produced by the coke-making process to drive the carbonization process. This is an older method, but is still being used for new construction.
Bituminous coal must meet a set of criteria for use as coking coal, determined by particular coal assay techniques. These include moisture content, ash content, sulfur content, volatile content, tar, and plasticity. This blending is targeted at producing a coke of appropriate strength (generally measured by coke strength after reaction), while losing an appropriate amount of mass. Other blending considerations include ensuring the coke doesn't swell too much during production and destroy the coke oven through excessive wall pressures.
The greater the volatile matter in coal, the more by-product can be produced. It is generally considered that levels of 26–29% of volatile matter in the coal blend are good for coking purposes. Thus different types of coal are proportionally blended to reach acceptable levels of volatility before the coking process begins.
Coking coal is different from thermal coal, but it differs not by the coal forming process. Coking coal has different macerals from thermal coal. The different macerals are related to source of material that compose the coal. However, the coke is of wildly varying strength and ash content and is generally considered unsellable except in some cases as a thermal product. As it has lost its volatile matter, it has lost the ability to be coked again.
The “Hearth” process of coke-making, using lump coal, was akin to that of charcoal-burning; instead of a heap of prepared wood, covered with twigs, leaves and earth, there was a heap of coals, covered with coke dust. The hearth process continued to be used in many areas during the first half of the 19th century, but two events greatly lessened its importance. These were the invention of the hot blast in iron-smelting and the introduction of the beehive coke oven. The use of a blast of hot air, instead of cold air, in the smelting furnace was first introduced by Neilson in Scotland in 1828. The hearth process of making coke from coal is a very lengthy process.
A fire brick chamber shaped like a dome is used, commonly known as a beehive oven. It is typically 4 meters wide and 2.5 meters high. The roof has a hole for charging the coal or other kindling from the top. The discharging hole is provided in the circumference of the lower part of the wall. In a coke oven battery, a number of ovens are built in a row with common walls between neighboring ovens. A battery consisted of a great many ovens, sometimes hundreds, in a row.
Coal is introduced from the top to produce an even layer of about 60 to 90 centimeters deep. Air is supplied initially to ignite the coal. Carbonization starts and produces volatile matter, which burns inside the partially closed side door. Carbonization proceeds from top to bottom and is completed in two to three days. Heat is supplied by the burning volatile matter so no by-products are recovered. The exhaust gases are allowed to escape to the atmosphere. The hot coke is quenched with water and discharged, manually through the side door. The walls and roof retain enough heat to initiate carbonization of the next charge.
When coal was burned in a coke oven, the impurities of the coal not already driven off as gases accumulated to form slag, which was effectively a conglomeration of the removed impurities. Since it was not the desired coke product, slag was initially nothing more than an unwanted by-product and was discarded. Later, however, it was found to have many beneficial uses and has since been used as an ingredient in brick-making, mixed cement, granule-covered shingles, and even as a fertilizer.
People can be exposed to coke oven emissions in the workplace by inhalation, skin contact, or eye contact. The Occupational Safety and Health Administration (OSHA) has set the legal limit for coke oven emissions exposure in the workplace as 0.150 mg/m3 benzene-soluble fraction over an 8-hour workday. The National Institute for Occupational Safety and Health (NIOSH) has set a Recommended exposure limit (REL) of 0.2 mg/m3 benzene-soluble fraction over an 8-hour workday.
Coke is used as a fuel and as a reducing agent in smelting iron ore in a blast furnace. The carbon monoxide produced by its combustion reduces iron oxide (hematite) in the production of the iron product.
Coke is commonly used as fuel for blacksmithing.
Coke was used in Australia in the 1960s and early 1970s for house heating.
Since smoke-producing constituents are driven off during the coking of coal, coke forms a desirable fuel for stoves and furnaces in which conditions are not suitable for the complete burning of bituminous coal itself. Coke may be combusted producing little or no smoke, while bituminous coal would produce much smoke. Coke was widely used as a substitute for coal in domestic heating following the creation of smokeless zones in the United Kingdom.
Discovered by accident to have superior heat shielding properties when combined with other materials, coke was one of the materials used in the heat shielding on NASA's Apollo Command Module. In its final form, this material was called AVCOAT 5026-39. This material has been used most recently as the heat shielding on the Mars Pathfinder vehicle. Although it was not used for the space shuttle, NASA had been planning to use coke and other materials for the heat shield for its next generation space craft, Orion.
Wastewater from coking is highly toxic and carcinogenic. It contains phenolic, aromatic, heterocyclic, and polycyclic organics, and inorganics including cyanides, sulfides, ammonium and ammonia. Various methods for its treatment have been studied in recent years. The white rot fungus Phanerochaete chrysosporium can remove up to 80% of phenols from coking waste water.
The most important properties of coke are ash and sulfur content, which are dependent on the coal used for production. Coke with less ash and sulfur content is highly priced on the market. Other important characteristics are the M10, M25, and M40 test crush indexes, which convey the strength of coke during transportation into the blast furnaces; depending on blast furnaces size, finely crushed coke pieces must not be allowed into the blast furnaces because they would impede the flow of gas through the charge of iron and coke. A related characteristic is the Coke Strength After Reaction (CSR) index; it represents coke's ability to withstand the violent conditions inside the blast furnace before turning into fine particles.
The water content in coke is practically zero at the end of the coking process, but it is often water quenched so that it can be transported to the blast furnaces. The porous structure of coke absorbs some water, usually 3–6% of its mass. In more modern coke plants an advanced method of coke cooling uses air quenching.
The solid residue remaining from refinement of petroleum by the "cracking" process is also a form of coke. Petroleum coke has many uses besides being a fuel, such as the manufacture of dry cells and of electrolytic and welding electrodes.
Gas works manufacturing syngas also produce coke as an end product, called gas house coke.
Fluid coking is a process which converts heavy residual crude into lighter products such as naphtha, kerosene, heating oil, and hydrocarbon gases. The "fluid" term refers to the fact that coke particles are in a continuous system versus older batch-coking technology.
Historic sources mention the use of coke in the fourth century AD