The transition of a substance from one state of matter to another due to changes in temperature and/or pressure.