The document proposes a discrete krill herd optimization algorithm for community detection in complex social networks. It introduces the motivation and challenges of community detection. The proposed approach adapts the krill herd algorithm domain to represent community structures using modularity as the objective function. Experimental results on four benchmark networks show the algorithm achieves good accuracy and high modularity, particularly for small to medium networks. Future work aims to improve performance on large networks through hybrid approaches.