Gravity and electromagnetism are two sides of the same coin, which is the clue of this unification. Gravity and electromagnetism are representing by two mathematical structures, symmetric and antisymmetric respectively. Einstein gravitational field equation is the symmetric mathematical structure. Electrodynamics Lagrangian is three parts, for electromagnetic field, Dirac field and interaction term. The definition of canonical energy momentum tensor was used for each term in Electrodynamics Lagrangian to construct the antisymmetric mathematical structure. Symmetric and antisymmetric gravitational field equations are two sides of the same Lagrangian.
Unification of Gravity and Electromagnetism