If you have multiple overlapping components on the screen, Z-index determines which component goes on top of the other elements. The element with higher Z-index will be placed above the element with Lower Z-index.