Multiple stacking-capable switches can be connected using stack cables to form a stack. These switches, usually referred to as stack members, form a unified system. To the network, the complete stack functions as a single entity.

The following scenarios are available on Ethernet Switches series (S5700, and S6700).
In redundancy mode, many stack members work together. SwitchA and SwitchB create a stack and back up each other in the diagram above. When SwitchA fails, SwitchB takes over as SwitchA to keep the stack functioning smoothly. Inter-device link aggregation and link redundancy are also supported by the stack.

Increasing the number of ports:
When a switch does not have enough ports to serve a rising number of users, more switches can be added to the original switch to address this need, as indicated in the diagram below.

Increasing bandwidth
Add new stack members and bundle their physical links into a link aggregation group to improve uplink bandwidth, as indicated in the diagram below.

Simplifying network topology
Multiple switches are virtualized into a single logical switch in the diagram below. Because this network does not require MSTP, network setting is significantly easier. Inter-device link aggregation also enhances network reliability and speeds up network convergence.

Implementing long-distance stacking
Users on each floor connect to the external network via corridor switches that are widely apart in the diagram below. Stack cables are used to connect corridor switches in a building to form a stack. As a result, each building has only one virtual access switch, simplifying the network, and many connections to the core network, increasing network robustness and reliability. Rather than configuring corridor switches one by one, the administrator merely needs to configure stacks. This saves money on management and upkeep.

Source: https://support.huawei.com/hedex/hdx.do?docid=EDOC1100126530&id=EN-US_CONCEPT_0177108888&lang=en