Why is an injunction used?

An injunction is used to prevent a person or organization from taking a specific action, such as continuing to violate a contract or infringe on intellectual property.