Kruskal's algorithm is used to find the minimum cost spanning tree in a connected weighted undirected graph. It operates by creating a disjoint set for each vertex, sorting the edges by weight, and iteratively adding edges that connect unconnected components until all vertices are connected. This method ensures that the resulting spanning tree has the minimum total weight.