Bail in Canada refers to the release (or detention) of a person charged with a criminal offence prior to being tried in court or sentenced. The Canadian Bill of Rights and the Canadian Charter of Rights and Freedoms guarantee the right not to be denied reasonable bail without just cause. That right is implemented by the Criminal Code, which provides several ways for a person to be released prior to a court appearance. A person may be released by a peace officer or by the courts. A release by the courts is officially known as a judicial interim release. There are also a number of ways to compel a person's appearance in court without the need for an arrest and release.