The Allahabad High Court has cleared up a major grey area in criminal law, ruling that an accused person cannot file a habeas corpus petition to challenge their arrest or initial remand once a competent court has officially taken cognizance of the charge sheet.
The court emphasized that in such situations, the only legal route left for the accused is to apply for regular bail. The landmark judgment was delivered by a division bench comprising Justice Siddharth and Justice Vinai Kumar Dwivedi in the case of Neeraj and Another vs. State of U.P. And Another.
The High Court stepped in to address a deeply concerning tactical trend emerging in criminal litigation. The bench observed that an increasing number of accused individuals have been turning to habeas corpus writs as a desperate legal maneuver, specifically after their regular bail applications have already been rejected by lower courts. The judges noted that this constitutional remedy traditionally reserved as a powerful shield against high-handed, illegal state detention was increasingly being misused as a backdoor strategy to secure release when statutory bail routes failed.
In a clarification of the law, the court explained that the entire legal landscape surrounding a person’s custody undergoes a fundamental, permanent shift the exact moment a magistrate or trial judge reviews the police charge sheet and takes formal cognizance of the offense. Up until that point, an accused person is held under temporary investigative remand orders passed under Section 167(2) of the old Code of Criminal Procedure (CrPC) or its modern equivalent, Section 187(2) of the newly enacted Bharatiya Nagarik Suraksha Sanhita (BNSS).
However, once formal cognizance is taken, those early investigative remand orders lose their independent legal relevance and are effectively superseded. The critical turning point, according to the bench, is the source of authority backing the detention. Once the trial court takes cognizance, the accused is no longer being held at the discretion of the police or under a routine, short-term investigative remand.
Instead, their confinement is governed by a direct, reasoned judicial order issued by a competent trial court that has assumed jurisdiction over the entire case. Because the detention now stems directly from an active judicial proceeding overseen by a competent judge, it carries the full weight of lawful authority. By definition, custody mandated by a valid court order cannot be characterized as “illegal detention.”
Consequently, the High Court ruled that once this judicial milestone is crossed, the essential condition for a habeas corpus writ completely vanishes, rendering such petitions legally unmaintainable and leaving regular bail as the only valid path forward. The judges did not mince words about how some litigants try to use habeas corpus as a backdoor entry to bypass regular bail courts.
Highlighting this issue, the bench observed:
“Number of accused are filing habeas corpus petitions before this court after their bail applications are rejected.”
The bench made it clear that a habeas corpus writ can only challenge an initial remand order within a very strict, narrow window specifically, before the court takes cognizance. Explaining why this boundary is absolute, the court stated:
“The filing of a writ petition for habeas corpus before the High Court, after passing of the judicial order of remand and subsequent orders taking cognizance of the offence… cannot be justified… Such remand order cannot stand on a better footing than the judicial order taking cognizance.”
The factual backdrop of the case centers on an exceptionally grim criminal investigation. The criminal law machinery was set in motion when a First Information Report (FIR) was registered as Case Crime No. 20 of 2024 at the Kotwali Lalitpur Police Station.
The case involved the tragic deaths of a young woman and her vulnerable one year old child. Given the nature of the deaths, the police invoked severe provisions of the Indian Penal Code (IPC), booking the accused under Section 498A for dowry cruelty, Section 304B for dowry death, and Section 302 for murder, along with relevant sections of the Dowry Prohibition Act.
Seeking immediate release from custody, the petitioners approached the High Court with a habeas corpus plea based entirely on a technical procedural flaw. They strongly contended that their initial arrest by the police was structurally flawed and illegal from the outset.
Specifically, the petitioners argued that the arresting officers failed to inform them of the grounds of their arrest in writing at the time of detention a procedural failure they claimed directly violated landmark guidelines laid down by the Supreme Court to safeguard personal liberty.
However, when the High Court scrutinized the petitioners’ filing, it discovered a deliberate pattern of material omission. The bench found that the petitioners had intentionally concealed critical chronological facts in their writ petition. Essential data points such as the exact date they were taken into custody, the specific dates on which the subsequent judicial remand orders were passed, and the current operational stage of the trial were strategically left out of their pleadings to present a skewed narrative of “illegal detention.”
The state’s counter affidavit completely changed the trajectory of the hearing by filling in these missing factual blanks. The state presented records showing that the investigation was no longer in its infancy it had progressed substantially, a formal charge sheet had been submitted, and the trial court had already stepped in to take formal cognizance.
By proving that the case had legally transitioned past the initial arrest and investigative phase into an active judicial proceeding, the state successfully demonstrated that the custody was now governed by a valid court order, making the habeas corpus plea completely untenable.
However, the division bench pointed out a clear divide in how the law has evolved. The judges noted that older, foundational Supreme Court judgments had carefully analyzed the complete structure of criminal trials. Those classic rulings established that the validity of a person’s detention must be judged based on the legal orders active on the date the court actually hears the writ.
The bench observed that some intermediate or more recent judgments had allowed deviations without fully reconciling with those older, bedrock principles of the Apex Court.
By aligning itself with the classic, foundational jurisprudence, the Allahabad High Court re-established that a fresh judicial order of cognizance effectively legalizes custody, automatically shutting the door on habeas corpus and directing the accused firmly toward standard regular bail procedures.

