With the increasing availability of social networks and biological networks, detecting network community structure has become more and more important. However, most traditional methods for detecting community structure have limitations in dimension reduction or parameter optimization. In this paper, we propose a Density-Canopy-Kmeans clustering algorithm (DCK) to detect network community structure. Specifically, we define a novel distance metric, which integrates random distance and community structure coefficient based on the Jaccard distance. After applying the Multidimensional Scaling (MDS) dimension reduction, we cluster the nodes. KMEANS is combined with density clustering and canopy clustering to determine the optimal number of communities and the best initial seeds are determined to improve the accuracy and stability of the K-means algorithm. Compared with traditional community detection methods, our method has a higher classification accuracy and a better visualization effect. Thus, this method is effective for analyzing network communities. INDEX TERMS Network, community detection, the Density-Canopy-Kmeans clustering algorithm, MDS.