A phase diagram is a graphical representation that shows the relationship between the physical state of a substance (solid, liquid, or gas) and temperature and pressure. It provides important insights into the conditions under which different phases exist, as well as phase transitions such as melting, boiling, and sublimation, connecting it to the principles of thermodynamics and state functions.