We study SU(N) gauge fields that couple to the inflaton through the Chern-Simons term. In this talk, I will shortly review the dynamics of SU(2) gauge fields during inflation and provide a general procedure to construct homogeneous, isotropic, and attractor solutions of SU(N) gauge fields during inflation. As specific examples, we construct the stable solutions for N=3 and 4 and numerically confirm that they are complete and attractor. I will also discuss the linear perturbations in our model. It is straightforward to apply our procedure to the other simple Lie groups.