TL;DRClustering groups similar points without labels — k-means and DBSCAN are the staples.
k-means partitions data into k clusters by repeatedly assigning points to the nearest center and recomputing centers — fast, but you must pick k and it assumes round, similar-sized clusters. DBSCAN groups by density, finding arbitrary shapes and labeling outliers as noise without needing k. Pick by your data's shape and whether you know the cluster count.
Key points
k-means: partition into k clusters (pick k)
Assumes round, similar-sized clusters
DBSCAN: density-based, any shape, finds noise
Choose by shape + whether k is known
Common mistakes
Using k-means on non-spherical clusters
Guessing k with no validation (elbow/silhouette)
Ignoring feature scaling before clustering
Try it: Pick k-means or DBSCAN for tight blobs vs irregular shapes with outliers.