Sodium channels close, which stops the influx of sodium ions.
Voltage-gated potassium channels open, increasing the flow of potassium ions out of the cell.
As the sodium channels close and potassium channels open the inside of the cell becomes more negative than the outside, decreasing the membrane potential.