Solids and liquids have something called a vapor pressure, and it's like a layer of gas of that (m)aterial at its surface. It increases with temperature
(M)ost metals form an oxide layer when exposed to oxygen. Some are bad, but some "passivate" the surface, protecting it from corrosion (e.g., aluminum)