Union-Find Algorithm

Can someone please explain the concept behind the Union-find Algorithm given here: https://www.geeksforgeeks.org/union-find/