The exclusionary rule is a legal principle in the Unite States, under constitutional law, that holds that evidence collected or analyzed in violation of the defendant's constitutional rights is inadmissible for a criminal prosecution in a court of law. This is an example of a prophylactic rule formulated by the judiciary in order to protect a constitutional right. The exclusionary rule is designed to provide a remedy and disincentive, short of criminal prosecution, for prosecutors and police who illegally gather evidence in violation of the Fourth and Fifth Amendments in the Bill of Rights, which provide for protection from unreasonable searches and seizure and compelled self-incrimination. The exclusionary rule also applies to violations of the Sixth Amendment, which guarantees the right to counsel.