An action potential is a rapid, temporary change in the electrical membrane potential of a neuron or muscle cell, allowing it to transmit a signal. It involves an influx of sodium ions into the cell followed by an efflux of potassium ions, restoring the original electrical condition.