A court order is a formal directive issued by a judge or a court that requires an individual or entity to either do or refrain from doing a specific action. It is legally binding and can encompass a wide range of directives, such as restraining orders, injunctions, or compliance with legal procedures.