The invention discloses a complex chemical process modeling method of a DNA genetic algorithm based on a swarm behavior. The method includes the following steps of firstly, obtaining input sampling data and output sampling data in the chemical process through experiments, and using the sum of an error absolute value of estimated output of a model and an error absolute value of practical sampling output in the chemical process as a fitness function aiming at the input sampling data in the same chemical process; secondly, setting control parameters of the algorithm; thirdly, conducting estimation on unknown parameters in a chemical process model by running the algorithm, obtaining estimated values of the unknown parameters in the model through a minimum objective function value, putting the estimated values of the unknown parameters in the model into the chemical process model, and obtaining an optimal chemical process model. According to the complex chemical process modeling method of the DNA genetic algorithm based on the swarm behavior, by the adopting of the DNA genetic algorithm based on a swarm honey gathering behavior and a swarm breeding behavior, the established chemical process model is made to have high fitting precision, and has the advantages of being high in convergence rate and rich in population diversity.