A preliminary injunction is a court order that is issued early in a legal proceeding to temporarily restrain or compel an action by one of the parties involved. It is a powerful remedy that aims to prevent irreparable harm or maintain the status quo until a final decision can be reached on the merits of the case.