The Signature ensures data integrity and prevents tampering.
The Signature in a JWT is created by encoding the Header and Payload and then signing them using a secret key or a public/private key pair. This ensures that the token hasn't been altered. For instance, in a Java web service, modifying the token's signature would result in an invalid token when verified, protecting against unauthorized changes.