Optimistic rollup is a layer 2 scaling solution for Ethereum that aims to increase the scalability and efficiency of the network. It works by allowing transactions to be processed off-chain in a separate environment, while still ensuring security through occasional on-chain validation. This approach helps reduce transaction costs and increase transaction throughput on the Ethereum network.