At high energies particles move very fast so their trajectories can be approximated by straight lines collinear to their velocities. The proper degrees of freedom for the fast gluons moving along the straight lines are Wilson-line operators - infinite gauge factors ordered along the line. I review the study of the high-energy scattering in QCD and N=4 SYM in terms of Wilson-line operators.