By preventing state changes after object creation.
Immutability ensures an object's state cannot change, reducing bugs and simplifying debugging. In e-commerce, a 'Customer' class could be immutable, with all fields set via the constructor and no setters, ensuring consistent customer data throughout its lifecycle.