An action potential is a rapid, temporary change in the membrane potential that travels along the cell membrane of excitable cells like neurons and muscle fibers. It is initiated when the membrane potential reaches a threshold, causing voltage-gated Na+ channels to open and depolarize the cell membrane. Subsequent opening of K+ channels repolarizes the membrane, restoring the resting potential.