Thermodynamics deals with energy levels and the transfer of energy between states of matter, and is therefore fundamental to all branches of science. This edition provides a relatively advanced treatment of the subject, specifically tailored for the interests of the Earth sciences. The first four chapters explain all necessary concepts, using a simple graphical approach. Throughout the rest of the book the author emphasizes the use of thermodynamics to construct mathematical simulations of real systems. This helps to make the many abstract concepts acceptable. Many computer programs are mentioned and used throughout the text, especially SUPCRT92, a widely used source of thermodynamic data. An associated website includes links to useful information sites and computer programs and problem sets. Building on the more elementary material in the first edition, this textbook will be ideal for advanced undergraduate and graduate students in geology, geochemistry, geophysics and environmental science.