P waves travel through any kind of material, whether it is a solid, liquid or gas. While S waves only move through solids and are stopped by liquids and gases