With the increasing demand for medicinal plants and the increasing shortage of resources, improving the quality and yield of medicinal plants and making more effective use of medicinal plants has become an urgent problem to be solved. In the process of growth and development of medicinal plants, due to the threat of various adversity, there are problems such as nutrient loss and yield decline. Using traditional chemical pesticides to control the stress resistance of plants will cause serious pollution to the environment and even endanger human health. Therefore, it is necessary to find suitable pesticide substitutes from natural ingredients. As an important part of the microecology of medicinal plants, endophytes can promote the growth of medicinal plants, improve the stress resistance of hosts, and promote the accumulation of active components of hosts. Because it has a more positive and direct impact on the host, and can metabolize rich medicinal ingredients, so researchers pay attention to it. This paper reviews the research in recent five years, aiming to provide ideas for improving the quality of medicinal plants, developing more microbial resources, exploring more medicinal natural products, and providing help for the development of the research on medicinal plants and endophytes.