A field-theoretical description of the electromagnetic production of two pions off the nucleon is derived and applied to photo-and electroproduction processes, assuming only one-photon exchange for the latter. The developed Lorentz-covariant theory is complete in the sense that all explicit three-body mechanisms of the interacting ππN system are considered based on three-hadron vertices. The modifications necessary for incorporating n-meson vertices for n ≥ 4 are discussed. The resulting reaction scenario subsumes and surpasses all existing approaches to the problem based on hadronic degrees of freedom. The full three-body dynamics of the interacting ππN system is accounted for by the Faddeev-type ordering structure of the Alt-Grassberger-Sandhas equations. The formulation is valid for hadronic two-point and three-point functions dressed by arbitrary internal mechanisms -even those of the self-consistent nonlinear Dyson-Schwinger type (subject to the three-body truncation) -provided all associated electromagnetic currents are constructed to satisfy their respective (generalized) Ward-Takahashi identities. It is shown that coupling the photon to the Faddeev structure of the underlying hadronic two-pion production mechanisms results in a natural expansion of the full twopion photoproduction current M µ ππ in terms of multiple dressed loops involving two-body subsystem scattering amplitudes of the ππN system that preserves gauge invariance as a matter of course order by order in the number of (dressed) loops. A closed-form expression is presented for the entire gauge-invariant current M µ ππ with complete three-body dynamics. Individually gauge-invariant truncations of the full dynamics most relevant for practical applications at the no-loop, one-loop, and two-loop levels are discussed in detail. An approximation scheme to the full two-pion amplitude for calculational purposes is also presented. It approximates, systematically, the full amplitude to any desired order of expansion in the underlying hadronic two-body amplitude. Moreover, it allows for the approximate incorporation of all neglected higher-order mechanisms in terms of a phenomenological remainder current. The effect and phenomenological usefulness of this remainder current is assessed in a tree-level calculation of the γN → KKΞ reaction.