The significant question here posed concerns the power of the trial court to exclude members of the general public, including representatives of the press, from the courtroom during the trial of a criminal prosecution.
The issue arose in the trial of Minot F. Jelke, on widely publicized charges of compulsory prostitution (Penal Law, § 2460) and other offenses of like characfer^Penal Law, § 1148), in the Court of General Sessions of the County of New York. Shortly after the trial got under way, the presiding judge, Honorable Francis L. Valente, made an order, on his own motion and over defendant’s objection, excluding “ the general public and the press * * * from the courtroom for the duration of the People’s case.” Defendant was, however, expressly permitted ‘1 to have present in the courtroom throughout the trial, any friends or relatives he deems necessary for the protection of his interests ”,
In announcing his ruling, the trial judge commented upon “ the obscene and sordid details ” which the opening statements of the district attorney and defense counsel indicated *61would be adduced, and he observed that “ the sound administration of justice and * * * the interests of good morals ” demanded that the curtain be drawn 1 ‘ on the offensive obscenity of this already over-publicized trial. ’ ’ He further directed that copies of the minutes of the trial were not to be made available, without the court’s permission, to anyone other than the defendant or the district attorney.
The press and the general public, with the exception of friends and relatives of defendant, were thus barred from the courtroom until the close of the People’s case, at which point the courtroom doors were again thrown open to all.
The jury returned a verdict of guilty on two counts of compulsory prostitution, and, upon appeal, the Appellate Division, by a divided court, reversed the resulting judgment of conviction 1 ‘ on the law ’ ’ and ordered a new trial upon the ground that defendant had been deprived of a public trial (284 App. Div. 211). The People have appealed to this court, pursuant to permission granted by one of the justices who dissented in the Appellate Division.
There is also before us an appeal by certain press associations and newspaper publishers who had instituted a separate proceeding in the nature of prohibition in the Supreme Court of New York County, while the Jelke trial was still in its initial stages, to restrain Judge Valente from enforcing and carrying out his ruling, on the theory that it violated their right to have Jelke’s trial open to the public. That application was denied at Special Term, and the Appellate Division affirmed. (Matter of United Press Assns. v. Valente, 281 App. Div. 395.) The issues posited by the appeal in that case, also decided today, are separately considered (308 N. Y. 71).
Of uncertain • origin, but nevertheless firmly rooted in the common law, the right to a public trial has long been regarded as a fundamental privilege of the defendant in a criminal prosecution. (See 1 Bentham, Rationale of Judicial Evidence [1827], Book II, ch. X; 2 Bishop, New Criminal Procedure [2d ed., 1913], p. 767; 3 Blackstone’s Comm. [Lewis ed., 1897], pp. 372-373; 2 Hale, History of the Common Law of England [5th ed., 1794], pp. 141-142; 2 Coke’s Institutes [1797], pp. 103-104; Radin, The Right to a Public Trial, 6 Temple L. Q. 381.) It is a right that is embodied in the Sixth Amendment to the *62United States Constitution, as respects prosecutions in the federal courts, and is likewise protected by constitution, statute or decision in almost every state in this country. (See Matter of Oliver, 333 U. S. 257, 267-268.)
In New York, the right to a public trial is guaranteed by statute, rather than constitution, but nevertheless remains a basic privilege of the accused. Section 8 of the Code of Criminal Procedure and section 12 of the Civil Rights Law thus declare that in criminal prosecutions the accused is entitled to ‘ ‘ a speedy and public trial ’ ’. And, in broader and more general language, section 4 of the Judiciary Law provides, subject to certain stated exceptions, that “ The sittings of every court within this state shall be public ”.1
All three statutory provisions were derived from the revised statutes of 1829. The revisers noted that the guarantee to an accused of “ a speedy and public trial ” was derived from the similarly worded provision of the Sixth Amendment (see Revisers’ Notes to Rev. Stat. of N. Y. [1829], part I, ch. IV, § 14), and that the other provision, now embodied in section 4 of the Judiciary Law, was “ Declaratory of the existing law.” (See Revisers’ Notes to Rev. Stat. of N. Y. [1829], part III, ch. III, tit. I, § 1, found in Reports to Legislature by N. Y. Comrs. to Revise Statutes [1828], as well as in 3 Rev. Stat. [2d ed., 1836], Appendix, p. 694.)
A variety of purposes has been ascribed to the principle of publicity in judicial proceedings. Foremost is that of affording greater security to the individual in the administration of justice. In contrast to secret inquisitional techniques, which are alien to a free society, publicity serves as a safeguard against unjust persecution of an accused and goes far toward insuring him the fair trial to which he is entitled. (See 1 Bentham, op. cit., pp. 523-524; 1 Cooley, Constitutional Limitations [8th ed., 1927], p. 647.) “ The knowledge that every criminal trial is subject to contemporaneous review in the forum of public opinion is an effective restraint on possible abuse of judicial power.” (See Matter of Oliver, supra, 333 U. S. 257, 270.) Publicity has also been deemed to play an important role *63in assuring “ testimonial trustworthiness ”, “ by inducing the fear of exposure ” of testimony falsely given (see 6 Wig-more on Evidence [3d ed., 1940], § 1834, p. 332; 1 Bentham, op. cit., pp. 523-524; 3 Blackstone, op. cit., p. 373), as well as in bringing notice of the proceedings to the attention of possible witnesses who may not he known to the parties. (See Tanksley v. United States, 145 F. 2d 58, 59; see, also, 6 Wigmore, op. cit., pp. 332-334.)
The public trial concept has, however, never been viewed as imposing a rigid, inflexible strait] acket on the courts. It has uniformly been held to be subject to the inherent power of the court to preserve order and decorum in the courtroom, to protect the rights of parties and witnesses, and generally to further the administration of justice. (See Bowers, Judicial Discretion of Trial Courts [1931], § 262, pp. 296-297; 6 Wigmore, op. cit., p. 338; 1 Bentham, op. cit., p. 541 et seq.) Accordingly, it is recognized that the court may limit the number of spectators in the interests of health or for sanitary reasons or in order to prevent overcrowding or disorder. (See People v. Miller, 257 N. Y. 54, 60; Crisfield v. Perine, 15 Hun 200, 201, affd. 81 N. Y. 622; Reagan v. United States, 202 F. 488, 489-490; United States v. Kobli, 172 F. 2d 919, 921-922; People v. Hartman, 103 Cal. 242, 245; Myers v. State, 97 Ga. 76, 99; State v. Brooks, 92 Mo. 542, 573; State v. Keeler, 52 Mont. 205, 216-217.) It is also recognized that the court may temporarily exclude spectators, where necessary to enable an immature or emotionally disturbed witness to testify. (See Hogan v. State, 191 Ark. 437; Moore v. State, 151 Ga. 648; State v. Damm, 62 S. D. 123; see, also, State ex rel. Baker v. Utecht, 221 Minn. 145, 149.) 2
The authority thus residing in the trial court must be acknowledged as an implicit qualification of the general rule of openness of judicial proceedings (see, e.g., United States v. Kobli, supra, 172 F. 2d 919, 922; State v. Keeler, supra, 52 Mont. 205, 216), notwithstanding the wording of the Judiciary Law section. As noted above, the revisers who drafted that provision viewed it merely as “ Declaratory of the existing law ”, rather than as some radical innovation. Section 4 undoubtedly has *64the effect of extending the guarantee of public trial to all cases, whether civil or criminal, with the exceptions there set forth. But, beyond that, it presumably does no more than to reaffirm in terms of general application the principle of publicity in judicial proceedings, subject to the qualifications inherent therein. (See People v. Murray, 89 Mich. 276, 286.)
Although it is plain that the exclusion order in the instant case was made, not to preserve order and decorum in the courtroom or to protect the rights of parties or witnesses at the trial, but in asserted deference to general considerations of public decency and morality, the district attorney urges that the action taken by the trial judge was, nevertheless, within the authority granted by section 4 of the Judiciary Law. With that we cannot agree.
That statute, after reciting that the sittings of every court “ shall be public ”, goes on to provide, “ except that in all proceedings and trials in cases for divorce, seduction, abortion, rape, assault with intent to commit rape, sodomy, bastardy or filiation, the court may, in its discretion, exclude therefrom all persons who are not directly interested therein, excepting jurors, witnesses, and officers of the court.” When adopted in 1879 (L. 1879, ch. 210, amdg. Code Civ. Pro., § 5), the provision did not include cases of sodomy or filiation; they were added in 1945 (L. 1945, ch. 649, § 3, amdg. Judiciary Law, § 4).
The present prosecution for compulsory prostitution is, of course, not one of the cases excepted from the statute’s mandate. That evidence of a sodomous act may have been anticipated, and was actually adduced during cross-examination of one of the People’s witnesses, did not convert that compulsory prostitution case into one for sodomy, and, in any event, could not justify exclusion of the public during other stages of the trial.
The district attorney, however — citing People v. Hall (51 App. Div. 57), which this court has never followed or approved —• contends that, despite its enumeration of specific cases, the Judiciary Law provision reflects a policy of permissible exclusion of the general public in any and all cases, even though not listed, where evidence of an indecent or filthy nature is anticipated, and that the statute should be broadly construed to give effect to that policy. Perhaps strong arguments may *65be made for the enactment of legislation of that sort, but we find no basis or warrant for adding, by judicial construction, to the enumeration of cases deliberately selected by the legislature for exceptional treatment. The language employed is too plain and unambiguous to permit the courts to engraft additional exceptions thereon. (Cf. Matter of Rathscheck, 300 N. Y. 346, 350, also concurring opinion, p. 352; People ex rel. Knott Corp. v. Graves, 286 N. Y. 377, 381; McCluskey v. Cromwell, 11 N. Y. 593, 601-602.) Moreover, the right of public trial is of such surpassing importance that any statute purporting to limit or qualify that right should be “ strictly construed in favor of the general principle of publicity.” (Commonwealth v. Blondin, 324 Mass. 564, 571; see Wade v. State, 207 Ala. 1; Stewart v. State, 18 Ala. App. 622, 623; Sallie v. State, 155 Miss. 547, 551; State v. Jordan, 57 Utah 612.)
Indeed, the very fact that section 4 was amended in 1945 to include two additional specific classes of cases — those of sodomy and filiation — affords confirmation that the legislative purpose was to deal with particular cases, rather than generally with every case in which one or more witnesses are expected to testify to obscene, indecent or salacious details. However illogical or incomplete the statutory classification may appear to be, the remedy lies with the legislature; the courts are powerless to rewrite the statute to give effect to their own concepts of public policy.
The Judiciary Law section, accordingly, may not here serve as a predicate for relaxation of the requirements of a public trial. We turn, then, to the district attorney’s further contention that the court had inherent power, separate and apart from statute, to exclude the general public and the press in a case of this kind in the interests of public decency. The argument is also made that the trial could in no event be deemed nonpublic, since it was open to defendant’s friends and relatives.
The demands of public morality do not, however, justify judicial nullification of the right of public trial, even in cases of an obscene or indecent nature, and restriction of attendance to a limited class of persons — such as defendant’s friends and relatives— does not satisfy the legislative mandate. (See United States v. Kobli, supra, 172 F. 2d 919; Tanksley v. United States, supra, 145 F. 2d 58; People v. Yeager, 113 Mich. 228; State v. *66Keeler, supra, 52 Mont. 205; Rhoades v. State, 102 Neb. 750; State v. Osborne, 54 Ore. 289; Neal v. State, 86 Okla. Cr. 283.) There are, it is true, decisions in several states which have sustained the inherent power of the court to exclude the general public from trials involving sexual offenses, provided friends or relatives of the defendant’s choosing are permitted to remain in the courtroom. (See, e.g., State v. Johnson, 26 Idaho 609; State v. Croak, 167 La. 92; State v. Nyhus, 19 N. D. 326; cf. Robertson v. State, 64 Fla. 437.) Those cases, however, reflect an unduly narrow view, to which we cannot subscribe, of the purposes and scope of a public trial.
The principle of publicity must at times yield, as noted above, independently of statutory qualification, to the contending considerations of sound judicial administration. The exclusion of particular spectators or classes of spectators may then be justified, without impairing the essential nature of the trial, which remains otherwise open to the public at large. There is, however, a vast difference between a trial of that kind, to which everyone is admitted except a designated few, and one, as in the case before us, from which everyone is excluded but a limited class.
"While the trial judge might have been warranted in barring minors from the trial (see People v. Murray, supra, 89 Mich. 276, 291; State v. Keeler, supra, 52 Mont. 205, 217; State v. Nyhus, supra, 19 N. D. 326, 330-331; State v. Hensley, 75 Ohio St. 255, 265), his order was not so confined, and the considerations affecting the immature and impressionable minor are not necessarily applicable to spectators more mature and experienced. (See United States v. Kobli, supra, 172 F. 2d 919, 923; see, also, 1 Bentham, op. cit., pp. 564-565; 1 Cooley, op. cit., p. 647.) And, whatever our view with regard to the attendance of the prurient-minded or the sensation-seeker at trials such as this (see 1 Cooley, op. cit., p. 647; 6 Wigmore, op. cit., p. 338; and compare People v. Hall, supra, 51 App. Div. 57, 63, with United States v. Kobli, supra, 172 F. 2d 919, 923-924), it would certainly not justify a court order generally and indiscriminately barring the public at large.
The statutory requirement of a public trial is not satisfied simply by allowing relatives and friends of defendant’s choosing to be present. A trial open only to such a limited class of pér*67sons may not be regarded as public, particularly if no representative of the press is permitted to attend. (See Note, 49 Col. L. Rev. 110,116-117.) A defendant may not have any relatives or friends available or willing to attend the trial, and, even if he has, such a handful is not by any means sufficiently representative of the public to provide the protection to an accused and the “ contemporaneous review in the forum of public opinion ” that a public trial is designed to assure and afford. (Matter of Oliver, supra, 333 U. S. 257, 270.)
Due regard for defendant’s right to a public trial demanded, at the very least — certainly, lacking valid legislative sanction —that he be not deprived of the possible benefits of attendance by the press. (See Keddington v. State, 19 Ariz. 457, 459; see, also, Radin, op. cit., pp. 391, 394; Note, 35 Mich. L. Rev. 474, 479.) Its widespread reporting of what goes on in the courts may well prove a potent force in restraining " possible abuse of judicial power.” (Matter of Oliver, supra, 333 U. S. 257, 270.) That being so, justification for excluding the press in this case may not be found in the sensational and vulgar coverage which the proceedings may have been receiving in some newspapers and which evidently disturbed the trial judge. Deplore as we may the bad taste of reporting of that kind, the courts may not take unto themselves the power to enforce their notions of public decency and morality at the sacrifice of basic rights guaranteed to the defendant by statute. The task of balancing the several competing interests and considerations must in this instance be left to the legislature, fully competent as it is to qualify or limit the rights granted by it, so long as the requirements of due process are not offended. (See Commonwealth v. Blondin, supra, 324 Mass. 564, 570-572.)
In sum, then, although the trial judge was unquestionably actuated by the highest of motives, the conclusion is inescapable that his order excluding the public was not sanctioned by legislation, or otherwise authorized, and'deprived defendant of a substantial right. Accordingly, as the Appellate Division held, defendant was entitled to a new trial without an affirmative showing of prejudice. (See United States v. Kobli, supra, 172 F. 2d 919; Tanksley v. United States, supra, 145 F. 2d 58; Davis v. United States, 247 F. 394.) To the plaint that such a ruling will result in reversal of a conviction of one clearly proved guilty, *68it is sufficient to say that decision herein far transcends the issue of Jelke’s guilt or the disposition of this particular case. As one court has expressed it (People v. Murray, supra, 89 Mich. 276, 286), “It is for the protection of all persons accused of crime — the innocently accused, that they may not become the victim of an unjust prosecution, as well as the guilty, that they maybe awarded a fair trial — that one rule [as to public trials] must be observed and applied to all.”
Concerned as we here are only with cases not encompassed by the special provisions of section 4 of the Judiciary Law, we need not now consider the scope or extent of the rights of a defendant standing trial in one of the cases listed in that statute. (Cf., e.g., Commonwealth v. Blondin, supra, 324 Mass. 564, 571.) Nor is it necessary, in the view which we have taken of the public trial issue, to pass upon the other questions raised by defendant.
The order of the Appellate Division should be affirmed.
. The section continues, “and every citizen may freely attend the same, except that ” in certain specified eases “ the court may * * * exclude therefrom” all persons “not directly interested therein".
. Exclusion of the general public has also been sustained, when necessary to preserve the secrecy of trade secrets involved in a particular litigation. (See, e.g., National Starch Products v. Polymer Industries, 273 App. Div. 732, 739.)