The purpose of a mempool in a blockchain network is to temporarily store pending transactions. It plays a crucial role in transaction prioritization, ensuring that high-value and low-fee transactions are processed efficiently. Network congestion can impact the mempool size, causing delays in transaction confirmations.