High-resolution electron-energy loss near-edge fine structure (ELNES) recorded in a scanning transmission electron microscope (STEM) is shown to provide information on the local structure and bonding of specific types of atoms in minerals. The L2,3 ELNES from Fe (Fe2+ and Fe3+), Mn (Mn2+, Mn3+, and Mn4+), and Cr (Cr3+ and Cr6+) show valence-specific multiplet structures that can be used as valence fingerprints. In general, the L3 edge for a specific 3d transition metal exhibits a chemical shift toward higher energy losses with an increase in oxidation state. Examples of mixed valence Fe- and Mn-bearing minerals are presented where the presence of multiple valence states is distinguished by a splitting of the L3 edge. The high spatial resolution that can be obtained using the STEM allows variations in the relative proportions of the oxidation states to be detected on a scale down to 1 nm2. This resolution is illustrated from a sample of hausmannite that shows different L3-edge shapes consistent with variations in the Mn2+-Mn3+ ratio over distances of ca. 100 nm. Furthermore, spectra of many elements exhibit ELNES shapes characteristic of the nearest neighbor coordination, as is demonstrated for C in the carbonate anion and Si in the SiO4 tetrahedral unit. The C K edge from is compared with that for elemental forms of C that exhibit very different ELNES. Similarly the Si L2,3 ELNES from a range of -containing minerals all show the same near-edge shape that is very different from Si and SiC. ELNES allows for its semiquantitative analysis, which is illustrated by two theoretical techniques. Finally, the effects of electron beam damage are discussed in relation to the experimental changes observed in the ELNES.