The resting membrane potential of a neuron arises from concentration gradients that cause potassium ions to diffuse out of the cell and sodium ions to diffuse into it. This creates a negative charge inside and positive outside, resulting in a resting potential of around -70 mV. This potential is maintained primarily by potassium permeability through leak channels and the sodium-potassium pump, which works to restore ion gradients.