The first two minutes matter more than anything else — do these steps in order.
This stops the flooding at the source. The main shutoff is usually near where the water line enters the house — basement, utility closet, or crawl space. Turning it clockwise stops water to the entire home, buying time before anyone arrives.
If water is near outlets, light fixtures, or an electrical panel, shut off power to that area at the breaker box rather than risking contact with standing water. Don't touch switches or outlets in a flooded area with wet hands.
Once the water and power are handled, call for emergency repair. The sooner a plumber sees the damage, the faster the affected section gets fixed — see how to tell a burst pipe from a slow leak if you're not fully sure what you're dealing with.
With the water off, move furniture, electronics, and valuables away from the affected area. Take photos or video of the damage before cleanup starts — this makes any homeowners insurance claim much easier to process.
Once power in the area is confirmed off, mopping up or wet-vacuuming standing water helps limit damage to flooring and drywall while waiting for a plumber to arrive.
Real human, real truck if you need one.