The invention provides a folding wing of a flapping wing aircraft that imitates birds and bats. The folding wing comprises an inner main beam (1), an inner front beam (1A), an inner rear beam (1B), amiddle main beam (2), a middle front beam (2A), a middle rear beam (2B), an outer main beam (3), a first biomimetic wing rib (4), a second biomimetic wing rib (5), a sliding groove link (6), a cross flapping shaft (7), a second folding link (9B) and a folding controller. The folding wing has the advantages that the structure of the flapping wing refers to the common characteristics of the wing anatomy of the flying vertebrates, imitates the humerus, the ulnar and radius bones, and the metacarpal and phalangeal bones, and the flapping wing is into an inner segment, a middle segment, and an outer segment; each segment is mainly loaded by the inner main beam, the middle main beam and the outer main beam, and the front and rear auxiliary beams are connected with other auxiliary links through several rotating pairs and sliding pairs, a complex multi-link mechanism is formed; the folding wing can accurately simulate the folding motion of flying vertebrates. The folding wing has the advantages of high aerodynamic efficiency, high degree of bionics and good controllability.