A range of things. Need more info regarding your car (mods, any servicing you've had done, what sort of driving condition when the stalling occurs).
Usually it's fuel (pump or injectors), spark (plugs, coilpacks, ignitors, wiring), or tune/ECU related. Can also be [bad] idle control.