If a pipe bursts, immediately shut off the main water supply and contact a plumber for emergency repairs. Remove any water-damaged items to prevent mold and ensure proper cleanup.