Petitioner, an organization seeking better treatment and housing of, inter alia, nonhuman primates, commenced this proceeding seeking a writ of habeas corpus on behalf of Kiko, a chimpanzee. Rather than seeking Kiko’s immediate release, however, the petition alleges that Kiko is illegally confined because he is kept in unsuitable conditions, and it seeks to have Kiko’s confinement transferred to a different facility selected by The North American Primate Sanctuary Alliance. On appeal from a judgment dismissing the petition, petitioner contends that Kiko is entitled to the relief sought. Contrary to petitioner’s contention, we conclude that Supreme Court properly dismissed the petition.
Regardless of whether we agree with petitioner’s claim that Kiko is a person within the statutory and common-law definition of the writ, “habeas corpus relief nonetheless is unavailable as [that] claim, even if meritorious, would not entitle [Kiko] to immediate release.'” It is well settled that a habeas corpus proceeding must be dismissed where the subject of the petition is not entitled to immediate release from custody. Here, petitioner does not seek Kiko’s immediate release, nor does petitioner allege that Kiko’s continued detention is unlawful. Rather, petitioner seeks to have Kiko placed in a different facility that petitioner deems more appropriate. Consequently, even assuming, arguendo, that we agreed with petitioner that Kiko should be deemed a person for the purpose of this application, and further assuming, arguendo, that petitioner has standing to commence this proceeding on behalf of Kiko, this matter is governed by the line of cases standing for the proposition that habeas corpus does not lie where a petitioner seeks only to change the conditions of confinement rather than the confinement itself (see generally People ex rel. We therefore conclude that habeas corpus does not lie herein.