Lightning network is the "second layer" or an off-chain of payment protocol that operates on top of a blockchain. It works on a peer-to-peer platform. The layer depends on bidirectional payment channels that do not need block confirmation and the payment will be instant.