The invention discloses an antibacterial and antiviral composition, and further discloses a preparation method and application of the composition. The composition is prepared from one or more of freshginger extracts, fructus chebulae extracts, herba agrimoniae extracts, galla chinensis extracts, phyllanthus ruinaria extracts, extracts from rhizoma dryopteris crassirhizomae, radix phytolaccae extracts, flose caryophylli extracts, cortex cinnamomi extracts, wild chrysanthemum flower extracts, extracts from leaves of tasmanian bluegum, fructus forsythiae extracts, radix stemonae extracts, herbageranii extracts, rhizoma atractylodis extracts, folium artemisiae argyi extracts, lavender extracts, herba pogostemonis extracts, curcuma longa extracts and mint extracts. The synergistic interactionbetween all the components is high, the antibacterial and antiviral composition has an significant dispelling effect on various pathogenic bacteria and viruses existing on skin and in air and is freeof irritation and side effects, the sources of the components are easy to obtain, the process for preparing the composition is simple, and the composition is suitable for volume production.