Chemical parks present a high risk of sudden accidents such as fires and explosions, given the significant number of hazardous sources present. This is why emergency evacuation after accidents is so essential. The behavior of crowds during evacuation is complex, and social relationships among pedestrians can have differentiated effects on the evacuation process. However, most of the current crowd evacuation research has focused on life scenarios and natural disaster contexts. Less attention has been paid to the emergency evacuation of crowds affected by social relations in the context of chemical accident disasters. A comprehensive evacuation model that considers the dynamic evolution of crowd transfer both within and outside the factory area is proposed in this paper. Using the Anylogic software based on the social force model, this study constructs emergency evacuation scenarios for crowd in the context of fire and explosion accidents, and toxic gas leakage incidents. Specifically, this study analyzes the impact of three factors, namely inter-personal distance, group size, and proportion of different group sizes in the total population, on the evacuation efficiency. It has been found that when large groups of pedestrians are split into smaller ones for evacuation, the evacuation efficiency can be effectively improved. The study includes calculations of the lethal range of a toxic gas and simulated the process of relocating large crowds of people to nearby shelters. In addition, a strategy for deploying pedestrian groups based on social relationships was developed for the context of mass evacuation. These measures have the potential to optimize the evacuation efficiency of pedestrian groups in chemical parks, including expanding and modifying shelters, diverting dense crowds from residential plots, using interpersonal spacing of 0.1 m, and splitting large groups of pedestrians into smaller ones. The research results can provide a reference for decision making for large-scale group evacuation in chemical parks, and improve the emergency evacuation capability and local risk response capability in chemical parks.