The invention relates to a security unmanned aerial vehicle with undercarriage folding and unfolding functions and a high-definition shooting function. The unmanned aerial vehicle comprises a main body, a camera, four flight devices and four brackets, and further comprises a folding and unfolding mechanism and four supporting mechanisms, the folding and unfolding mechanism comprises a first cylindrical notch, a piston block, a first permanent magnet, a second permanent magnet, an air pressure sensor, a connecting rod and four air collecting assemblies, each supporting mechanism comprises a second cylindrical notch, an undercarriage, a buffer assembly, a spring, a third pipeline, a second electric valve, a second pipeline and a first electric valve, each air collecting assembly comprises anair collecting pipe, a third electric valve and a first pipeline, and each buffer assembly comprises an air conveying hole and an air bag. The buffering effect on the camera is achieved through the folding and unfolding mechanism, shaking of the camera is reduced, the shooting definition of the unmanned aerial vehicle is improved, shielding of the supporting mechanisms on shooting of the camera is reduced through folding and unfolding of the supporting mechanisms, and the practicability of the unmanned aerial vehicle is improved.