Metallurgy
Metallurgy is a domain of materials science that studies the physical and chemical behavior of metallic elements, their intermetallic compounds, and their compounds, which are called alloys.  It is also the technology of metals: the way in which science is applied to their practical use.  Metallurgy is commonly used in the craft of metalworking.

# History
The earliest recorded metal employed by humans appears to be gold which can be found free or "native". Small amounts of natural gold have been found in Spanish caves used during the late Paleolithic period, c. 40,000 BC.
Silver, copper, tin and meteoric iron can also be found native, allowing a limited amount of metalworking in early cultures.  Egyptian weapons made from meteoric iron in about 3000 B.C. were highly prized as "Daggers from Heaven". However, by learning to get copper and tin by heating rocks and combining copper and tin to make an alloy called bronze, the technology of metallurgy began about 3500 B.C. with the Bronze Age.
The extraction of iron from its ore into a workable metal is much more difficult.  It appears to have been invented by the Hittites in about 1200 B.C., beginning the Iron Age.  The secret of extracting and working iron was a key factor in the success of the Philistines
Historical developments in ferrous metallurgy can be found in a wide variety of past cultures and civilizations. This includes the ancient and medieval kingdoms and empires of the Middle East and Near East, ancient Egypt and Anatolia (Turkey), Carthage, the Greeks and Romans of ancient Europe, medieval Europe, ancient and medieval China, ancient and medieval India, ancient and medieval Japan, etc. Of interest to note is that many applications, practices, and devices associated or involved in metallurgy were possibly established in ancient China before Europeans mastered these crafts (such as the innovation of the blast furnace, cast iron, steel, hydraulic-powered trip hammers, etc.). However, modern research suggests that Roman technology was far more sophisticated than hitherto supposed, especially in mining methods, metal extraction and forging. They were for example expert in hydraulic mining methods well before the Chinese, or any other civilization of the time.
A 16th century book by Georg Agricola called De re metallica describes the highly developed and complex processes of mining metal ores, metal extraction and metallurgy of the time. Agricola has been described as the "father of metallurgy"

# Extractive metallurgy
Extractive metallurgy is the practice of removing valuable metals from an ore and refining the extracted raw metals into a purer form. In order to convert a metal oxide or sulfide to a purer metal, the ore must be reduced either physically, chemically, or electrolytically.
Extractive metallurgists are interested in three primary streams: feed, concentrate (valuable metal oxide/sulfide), and tailings (waste).  After mining, large pieces of the ore feed are broken through crushing and/or grinding in order to obtain particles small enough where each particle is either mostly valuable or mostly waste.  Concentrating the particles of a value in a form supporting separation enables the desired metal to be removed from waste products.
Mining may not be necessary if the ore body and physical environment are conducive to leaching.  Leaching dissolves minerals in an ore body and results in an enriched solution.  The solution is collected and processed to extract valuable metals.
Ore bodies often contain more than one valuable metal.  Tailings of a previous process may be used as a feed in another process to extract a secondary product from the original ore.  Additionally, a concentrate may contain more than one valuable metal.  That concentrate would then be processed to separate the valuable metals into individual constituents.

# Important common alloy systems
Common engineering metals include aluminium, chromium, copper, iron, magnesium, nickel, titanium and zinc. These are most often used as alloys. Much effort has been placed on understanding the iron-carbon alloy system, which includes steels and cast irons. Plain carbon steels are used in low cost, high strength applications where weight and corrosion are not a problem. Cast irons, including ductile iron are also part of the iron-carbon system.
Stainless steel or galvanized steel are used where resistance to corrosion is important. Aluminium alloys and magnesium alloys are used for applications where strength and lightness are required.
Cupro-nickel alloys such as Monel are used in highly corrosive environments and for non-magnetic applications.  Nickel-based superalloys like Inconel are used in high temperature applications such as turbochargers, pressure vessels, and heat exchangers.  For extremely high temperatures, single crystal alloys are used to minimize creep.

# Production engineering of metals
In production engineering, metallurgy is concerned with the production of metallic components for use in consumer or engineering products. This involves the production of alloys, the shaping, the heat treatment and the surface treatment of the product. The task of the metallurgist is to achieve balance between material properties such as cost, weight, strength, toughness, hardness, corrosion and fatigue resistance, and performance in temperature extremes.  To achieve this goal, the operating environment must be carefully considered. In a saltwater environment, ferrous metals and some aluminium alloys corrode quickly.  Metals exposed to cold or cryogenic conditions may endure a ductile to brittle transition and lose their toughness, becoming more brittle and prone to cracking.  Metals under continual cyclic loading can suffer from metal fatigue. Metals under constant stress at elevated temperatures can creep.

## Metal working processes
Metals are shaped by processes such as casting, forging, flow forming, rolling, extrusion, sintering, metalworking, machining and fabrication. With casting, molten metal is poured into a shaped mould. With forging, a red-hot billet is hammered into shape. With rolling, a billet is passed through successively narrower rollers to create a sheet. With extrusion, a hot and malleable metal is forced under pressure through a die, which shapes it before it cools. With sintering, a powdered metal is compressed into a die at high temperature. With machining, lathes, milling machines, and drills  cut the cold metal to shape. With fabrication, sheets of metal are cut with guillotines or gas cutters and bent into shape.
"Cold working" processes, where the products shape is altered by rolling, fabrication or other processes while the product is cold, can increase the strength of the product by a process called work hardening. Work hardening creates microscopic defects in the metal, which resist further changes of shape.
Various forms of casting exist in industry and academia. These include sand casting, investment casting (also called the lost wax process), die casting and continuous casting.

## Joining
Welding is a technique for joining metal components by melting the base material.  A filler material of similar composition may also be melted into the joint.
Brazing is a technique for joining metals at a temperature below their melting point.  A filler with a melting point below that of the base metal is used, and is drawn into the joint by capillary action.  Brazing results in a mechanical and metallurgical bond between work pieces.
Soldering is a method of joining metals below their melting points using a filler metal.
Soldering results in a mechanical joint and occurs at lower temperatures than brazing.

## Heat treatment
Metals can be heat treated to alter the properties of strength, ductility, toughness, hardness or resistance to corrosion.  Common heat treatment processes include annealing, precipitation strengthening, quenching, and tempering.  The annealing process softens the metal by allowing recovery of cold work and grain growth.  Quenching can be used to harden alloy steels, or in precipitation hardenable alloys, to trap dissolved solute atoms in solution.  Tempering will cause the dissolved alloying elements to precipitate, or in the case of quenched steels, improve impact strength and ductile properties.

## Surface treatment
Electroplating is a common surface-treatment technique. It involves bonding a thin layer of another metal such as gold, silver, chromium or zinc to the surface of the product. It is used to reduce corrosion as well as to improve the product's aesthetic appearance.
Thermal spraying techniques are another popular finishing option, and often have better high temperature properties than electroplated coatings.
Case hardening is a process in which an alloying element, most commonly carbon or nitrogen, diffuses into the surface of a monolithic metal.  The resulting interstitial solid solution is harder than the base material, which improves wear resistance without sacrificing toughness.

# Electrical and electronic engineering
Metallurgy is also applied to electrical and electronic materials where metals such as aluminium, copper, tin, silver, and gold are used in power lines, wires, printed circuit boards and integrated circuits.

# Metallurgical techniques
Metallurgists study the microscopic and macroscopic properties using metallography, a technique invented by Henry Clifton Sorby. In metallography, an alloy of interest is ground flat and polished to a mirror finish. The sample can then be etched to reveal the microstructure and macrostructure of the metal.  A metallurgist can then examine the sample with an optical or electron microscope and learn a great deal about the sample's composition, mechanical properties, and processing history.
Crystallography, often using diffraction of x-rays or electrons, is another valuable tool available to the modern metallurgist.  Crystallography allow the identification of unknown materials and reveals the crystal structure of the sample.  Quantitative crystallography can be used to calculate the amount of phases present as well as the degree of strain to which a sample has been subjected.
The physical properties of metals can be quantified by mechanical testing.  Typical tests include tensile strength, compressive strength, hardness, impact toughness, fatigue and creep life.