A pressure cooker works by trapping the steam in with the food as it heats up. This creates a hotter environment and increases the pressure and heat to make the cooking process quicker.