Plumbing works by transporting water and waste through pipes and fixtures. Local codes mandate that water heaters be strapped to walls to prevent tipping over during earthquakes which could break gas or water pipes. Quality plumbing is important for health and safety as it ensures proper water supply and sewage removal by meeting building codes for sanitation in residential, commercial, and industrial buildings. Proper plumbing is essential for sanitation and safety.