The dynamic dendritic cells algorithm in the intrusion detection system was introduced.The algorithm possesses the capability of dynamic determination of antibodies set and can improve the threshold setting.The comparative experiment on detection results between traditional dendritic cell detection algorithm and dynamic dendritic cell algorithm based on UCI datasets illustrates that the dynamic dendritic cell algorithm effectively improves the accuracy of the data processing and increases the robustness and self adaptability.