I am looking for some examples of failure of some structures giving interesting notions. For example, we have the following situation:
Let $P(M,G)$ be a principal bundle. Let $\Gamma\subseteq TP$ be a connection on $P(M,G)$. Given a vector field $X:M\rightarrow TM$ on $M$, connection $\Gamma$ gives a unique (horizantal) vector field $\widetilde{X}:P\rightarrow TP$ on $P$. Thus, given a connection $\Gamma$ on $P(M,G)$, we have a set level map $\Phi:\mathfrak{X}(M)\rightarrow \mathfrak{X}(P)$ that sends a vector field $X$ on $M$ to its lift $\widetilde{X}$ on $P$. It is clear that this map $\Phi:\mathfrak{X}(M)\rightarrow \mathfrak{X}(P)$ is $\mathbb{R}$-linear. Observe that the $\mathbb{R}$-vector spaces $\mathfrak{X}(M)$ and $\mathfrak{X}(P)$ has an extra structure of being a Lie algebra over $\mathbb{R}$. So, next question is to see if the map $\Phi:\mathfrak{X}(M)\rightarrow \mathfrak{X}(P)$ is a morphism of Lie algebras or not. Failure of this map to preserve the structure of a Lie algebra morphism, measured by the difference $$\Phi([X,Y])-[\Phi(X),\Phi(Y)]:P\rightarrow TP$$ has a special name called the curvature of the connection $\Gamma$. It is already famous enough that I do not have to say anything more about it. Note that it is not in the usual form. But, one can assign a $2$-form on $M$ for this difference which is the usual notion of curvature of a connection on a principal bundle $P(M,G)$.
So, what are the interesting concepts/theories that came out of something not preserving the structure?