An injunction is a court order saying that someone must either do or not do a certain thing. For example, if someone trespasses on another’s property, a court could issue an injunction banning the trespasser from that property.