What does it mean exactly to stall a manual car?

I understand what stalling is but why does it happen? Why does it matter whether or not the clutch is engaged slowly or quickly? How does this cause the engine to stall? Thanks.