Stability with eigenvalues' real part equal to zero

I know, from Lyapunov criteria, that a system is stable (not asymptotically) if the system has eigenvalues with negative real part or it has eigenvalues with real part equals to zero, but in this case the algebraic multiplicity must be equal to the geometric multiplicity. I don't understand why there's this condition when the real part is equal to zero.