A nonce prevents replay attacks in blockchain by ensuring each transaction is used only once. It's a simple counter that keeps your funds safe from being copied and reused by attackers.