Grad's 13-moment equations describe transport in mildly rarefied gases well, but are not properly embedded into nonequilibrium thermodynamics since they are not accompanied by a formulation of the second law. In this work, the Grad-13 equations are embedded into the framework of GENERIC (general equation for the nonequilibrium reversible–irreversible coupling), which demands additional contributions in the equations to guarantee thermodynamic structure. As GENERIC building blocks, we use a Poisson matrix for the basic convection behavior and antisymmetric friction matrices to correct for additional convective transport terms. The ensuing GENERIC-13 equations completely match the Grad-13 equations up to second-order terms in the Knudsen number and fulfill all thermodynamic requirements.