An injunction is an order by the court restraining a person from beginning or continuing an action threatening or invading the legal right of another, or compelling a person to carry out a certain act. An injunctive order can be temporary or permanent, depending on the circumstances of a particular case.