Polydopamine (PDA) was prepared by using dopamine which has good charring ability. The PDA was used as an environmentally friendly flame retardant and combined with 9,10-dihydro-9-oxo-10-phosphaphenanthrene-10-oxide (DOPO) to improve the flame retardancy of epoxy (EP) resin. The flame retardancy and thermal stability of EP composites were researched by UL-94 vertical burning, limiting oxygen index (LOI), cone calorimetry tests, and thermal gravimetric analyzer. Adding DOPO alone requires 6% to make EP obtain the UL-94 V0. If DOPO and PDA are combined, only 4% is needed to make EP obtain the UL-94 V0, which suggests that there is good synergistic effect between them. Moreover, the peak of heat release rate of EP/DOPO/PDA composites is less than that of EP/DOPO composites. The reactions among EP, DOPO, and PDA reduce the release of combustible gases at the early stage of degradation; at the same time, DOPO volatilize to the gas phase, quench the free radicals, and the combustion can be stopped. In addition, due to the decrease of the amount of PDA/DOPO, the EP composite can get a higher glass transition temperature, but due to the aggregation of PDA in EP, the tensile property of EP composite decreases.