The Miranda warning rule is a legal requirement in the United States of America, according to which, during arrest, the detainee must be notified of his rights, and the law enforcement officer detaining him must receive a positive answer when asked if he understands what was said.
The Miranda Rule arose out of the historic Miranda v. Arizona case and is named after the accused Ernesto Miranda, whose testimony was removed from the case file as obtained in violation of the law. The prisoner's lawyers proved that, when giving confessions, the accused was not aware that he could remain silent, and therefore he did it under pressure. Miranda, however, was convicted on the basis of other materials in the case. The hole in the law did not help him, but the precedent remained.
The Miranda Rule was introduced by a US Supreme Court decision in 1966 to ensure the right not to incriminate oneself (nemo tenetur se ipsum accusare). Since then, any information obtained from a detainee during interrogation before his rights were read to him cannot be considered admissible evidence.
In the last decades of the 20th century, following the example of the United States, similar rules were adopted in many other countries.