In law, the bar is the legal profession as an institution. The term is a metonym for the line (or "bar") that separates the parts of a courtroom reserved for spectators and those reserved for participants in a trial such as lawyers.
The origin of the term bar is from the barring furniture dividing a medieval European courtroom, similar to the origin of the term bank for the bench-like location of financial transactions in medieval Europe. In the USA, Europe and many other countries referring to the law traditions of Europe, the area in front of the barrage is restricted to participants in the trial: the judge or judges, other court officials, the jury (if any), the lawyers for each party, the parties to the case, and witnesses giving testimony. The area behind the bar is open to the public. This restriction is enforced in nearly all courts. In most courts, the bar is represented by a physical partition: a or that serves as a bar.
The bar may also refer to the qualifying procedure by which a lawyer is licensed to practice law in a given jurisdiction.
In the United States, this procedure is administered by the individual U.S. states. In general, a candidate must graduate from a qualified law school and pass a written test: the bar examination. Nearly all states use the Multistate Bar Examination, usually with additions for that state's laws. The candidate is then admitted to the bar. A lawyer whose license to practice law is revoked is said to be disbarred.
In the United Kingdom, the practice of law is divided between barristers (advocates in Scotland) and solicitors. It is usually the former who appear in an advocacy role before the court. When a lawyer becomes an advocate or barrister, he is called to the bar.