In this paper, in order to overcome the defect of the firefly algorithm, for example slow convergence rate, low accuracy and easily falling into the local optima in the global optimization search, we propose a dynamic population firefly algorithm based on chaos. The stability between fireflies are proved, and the similarity chaotic phenomenon in firefly algorithm will be simulated.