An introduction to extended theories of gravity formulated in metric-affine (or Palatini) spaces is presented. Focusing on spherically symmetric configurations with electric fields, we will see that in these theories the central singularity present in General Relativity is generically replaced by a wormhole structure. The resulting space-time becomes geodesically complete and, therefore, can be regarded as nonsingular. We illustrate these properties considering two different models, namely, a quadratic f (R) theory and a Born-Infeld like gravity theory.