A phase diagram is a graphical representation that shows the relationships between the different phases of a substance, such as solid, liquid, and gas, as a function of variables like temperature and pressure. It provides a comprehensive understanding of the conditions under which a substance can exist in different states of matter.