On Ethereum, gas serves as the fundamental unit for measuring the computational effort required to execute transactions or smart contracts. The gas limit represents the maximum amount of gas all transactions can consume within a single block.