To replace the rotted wood under your kitchen sink caused by a leak, turn off the water supply, disconnect the sink plumbing, remove the damaged wood, cut and install a new piece of wood, reconnect the plumbing, and ensure there are no leaks before restoring the area.