Union-Find Algorithm

Can someone please explain the concept behind the Union-find Algorithm given here: Introduction to Disjoint Set Data Structure or Union-Find Algorithm - GeeksforGeeks