When a substance has enough temperature and pressure at the same time, called the critical point, you can't tell the difference between very dense gas and very energetic liquid. This is a supercritical fluid, and it behaves like both liquid and gas.