  We show that breaking of the conformal invariance of electromagnetic
Lagrangian which is required for inflationary magnetogenesis arises naturally
in the Poincar{\'e} Gauge Theory. We use the minimal coupling prescription to
introduce the electromagnetic gauge fields as well as non-abelian gauge fields
in this theory. Due to the addition of non-abelian gauge fields, we show that
the solar constraints on this model can be naturally evaded. We find that in
the minimal version of this model the generated magnetic field is too small to
explain the observations. We discuss some generalizations of the gravitational
action, including the Starobinsky model and a model with conformal invariance.
We show that such generalizations naturally generate the kinetic energy terms
required for magnetogenesis. We propose a generalization of the minimal model
by adding a potential term, which is allowed within the framework of this
model, and show that it leads to sufficiently large magnetic fields.
