Clustering is one of the most important scientific discoveries made by scientists. The main idea is to split data into a set of clusters. The research aims to use the concept of clustering to model data and the knowledge of the efficiency of the PAM algorithm in determining the efficiency of water projects in Nineveh Governorate in terms of physical tests such as temperature, electrical and acidity. Nineveh in a number of its projects inside Mosul and on the outskirts. The research concluded that the performance of the PAM clustering technique was more effective in calculating the distance matrix for large dimensional data, and the application of this technique led to the production of a basic rule that can be used several times with the same weight to create a field around which clusters are centered, which enables us to find more aggregates excitement.