https://bitcoinops.org/en/topics/atomic-multipath/
These are effectively payment channels secured by multi-signature, they start on chain with a channel opening commitment:
https://docs.lightning.engineering/the-lightning-network/liquidity/manage-liquidity#channels
This is the start of the on chain portion of lightning.
The off chain lightning network is enabled once these channels are established, re-balancing channels is an example of an off-chain task you can do with the established channels:
https://docs.lightning.engineering/the-lightning-network/liquidity/manage-liquidity#rebalancing-channels
Once a user wants to settle the funds back on the main bitcoin chain they need to initiate a channel close:
https://docs.lightning.engineering/the-lightning-network/liquidity/manage-liquidity#closing-channels
There are two options for this, a cooperative close:
And a force close:
Both of these closes involve finalizing the state of the atomic multi signature script committed to by the members of the channel on chain.
(closing channel quotes are from https://docs.lightning.engineering/the-lightning-network/liquidity/manage-liquidity#rebalancing-channels)