The invention discloses a two-degree-of-freedom holder for aviation, which mainly comprises an azimuth rotating unit and a pitching rotating unit, and the azimuth rotating unit comprises an azimuth motor, an azimuth speed reducer, a conductive slip ring, a pull-type direct-acting electromagnet, an azimuth driver, an azimuth encoder, a hollow sleeve and a lower shell. The pitching unit comprises a pitching motor, a motor small gear, a large gear, a brake small gear, a pitching speed reducer, a brake, a pitching encoder, a gyroscope chip, a pitching driver, a left side shell, a right side shell, a first output flange, a second output flange, a mechanical hard limiting device and a mechanical limiting device. The holder system is large in output torque, high in system integration level and light in weight, and has anti-shake and positioning functions.