The Commonwealth has taken this appeal from an Order of the Court of Common Pleas of Philadelphia County discharging the appellee on his writ of habeas corpus. 1
We are asked to decide if the Commonwealth in a habeas corpus proceeding, wherein it is alleged that the Commonwealth failed to establish a prima facie case, is restricted to *362 the evidence which was produced at the preliminary hearing.
The appellee, Ronald Morman, was arrested by the Philadelphia Police Department and charged with Theft of Services; Receiving Stolen Property; Recklessly Endangering Another Person; and Risking a Catastrophe. These charges resulted when the Philadelphia Police Department requested that the Philadelphia Electric Department investigate an electric hook-up to a bus operating as a variety store in the City of Philadelphia. After examining the hook-up on September 25, 1986, the Electric Company representative was of the opinion that the hook-up was an illegal one. R.R. at 16a. On that same day, the hook-up was removed and Ronald Morman was arrested.
On October 21, 1986, Ronald Morman was afforded a preliminary hearing before the Honorable Francis P. Cadran of the Municipal Court of Philadelphia. At the preliminary hearing, the Commonwealth presented the testimony of the Electric Company representative who had investigated the allegedly illegal electric hook-up. This representative testified that due to the location of the hook-up in a residential area and the manner in which the hook-up was installed “there was a potential there for injury to anyone who may have been in that area.” R.R. at 21a. At the conclusion of the Commonwealth’s evidence, counsel for Morman argued that the Commonwealth had failed to establish a prima facie case because there was no evidence showing who owned the variety store bus. Thus, Morman’s association with the alleged criminal conduct had not been sufficiently proven by the Commonwealth. The Commonwealth argued that because the Electric Company representative had testified that Morman was arrested on the same day that the hook-up was examined and removed, there was sufficient evidence to hold Morman for trial on the specified charges. R.R. at 26a. The Court found that a prima facie case had been established by the Commonwealth.
*363
Thereafter, Morman filed a Motion to Quash Return of Transcript, contending that the Commonwealth had failed to establish a
prima facie
case at the preliminary-hearing because no evidence had been presented concerning ownership of the variety store bus. It is clear that the proper means for testing the finding that the Commonwealth has sufficient evidence to establish a
prima facie
case is to petition the trial court for a writ of habeas corpus.
Commonwealth v. Hetherington,
A hearing concerning Morman’s habeas corpus petition was held in the Philadelphia Court of Common Pleas on January 21, 1987. At this hearing, the Commonwealth had present a detective who was presumably prepared to testify that Morman had admitted that he was the owner and operator of the variety store bus and that he knew of the hook-up. R.R. at 31a. The Court refused to permit the detective to testify, ruling that Morman’s habeas corpus petition would be decided on the evidence presented at the preliminary hearing alone. The trial court concluded that the Commonwealth had failed to establish a prima facie case against Morman at the preliminary hearing and, as a result, the court granted the writ of habeas corpus, thus *364 discharging Morman. We find that the trial court did err in the case before us and, therefore, we reverse.
The scope of the evidence which may be received in a pretrial habeas corpus hearing has never been specifically addressed by our appellate courts.
3
As a starting point, we must recognize the importance and the history of the writ of habeas corpus in our system of government. “The writ of habeas corpus has been called the ‘great writ.’ It is an ancient writ, inherited from the English common law, and lies to secure the immediate release of one who is detained unlawfully.” P.L.E. Habeas Corpus § 2.
See
42 Pa.C.S.A. § 6502(a). In
Fay v. Noia,
Although in form the Great Writ is simply a mode of procedure, its history is inextricably intertwined with the growth of fundamental rights of personal liberty ... Its root principle is that in a civilized society, government must always be accountable to the judiciary for a man’s imprisonment: if the imprisonment cannot be shown to conform with the fundamental requirements of law, the individual is entitled to his immediate release ...
Id.
at 402,
In the instant case, Morman was afforded a preliminary hearing. The purpose of a preliminary hearing is much the same as the purpose of the pretrial petition for habeas corpus relief. As has often been stated:
The primary reason for the preliminary hearing is to protect an individual’s right against unlawful arrest and detention. It seeks to prevent a person from being imprisoned or required to enter bail for a crime which was never committed, or for a crime with which there is no evidence of his connection____
Commonwealth v. Hess, supra,
In
Commonwealth ex rel. Scolio v. Hess,
We have carefully read the testimony in the record certified to us and are of the opinion that it did not justify the order of the alderman holding the relator for court; and, as nothing more was produced before the court below, that it was not sufficient to warrant his being remanded for trial by a petit jury. We do not mean to hold that on a hearing before a committing magistrate or on a habeas corpus hearing, the Commonwealth must produce evidence of such character and quantum of proof as to require a finding by a jury of the accused’s guilt, beyond a reasonable doubt. But it should be such as to present “sufficient probable cause to believe, that the person charged has committed the offence stated”----
*367
Id.,
149 Pa.Superior Ct. at 374,
We are guided in reaching our decision in the instant case by the opinion of our supreme court in
Commonwealth v. Ruza,
A hearing was held on the Omnibus Pre-Trial Motion, lasting two days. In its Findings of Fact and Conclusions of Law, the trial court specifically addressed the question of whether, notwithstanding the lack of a preliminary hearing, a prima facie case existed against Appellee. The court found that the evidence adduced at the Omni *368 bus Pre-Trial Hearing was more than sufficient to establish a prima facie case____
Id.,
In the unlikely event the district justice and the court of common pleas, having the habeas corpus application, were both in error in their assessment of the Commonwealth’s evidence against the accused, the trial would not proceed beyond the demurrer stage ... If in fact it is determined at trial that the evidence is sufficient to be submitted to the jury, then any deficiency in the presentation would have been harmless.
Ruza, supra
In the case at bar, the trial court erred in limiting the scope of the Commonwealth’s evidence at the hearing held on Morman’s habeas corpus petition. As a result, we vacate the order of the trial court granting Morman’s motion to quash return of transcript, entered on January 21, 1987, and remand for further proceedings consistent with this opinion.
Jurisdiction is relinquished.
Notes
. It is settled law that the Commonwealth may appeal from an order discharging an accused upon a writ of habeas corpus.
Commonwealth v. Hess,
. In
Commonwealth v. Orman,
. We note the case of Commonwealth v. Marker, 25 Pa.D. & C.3d 119 (1982). In Marker, the Court of Common Pleas of Somerset County considered the precise issue raised by this appeal and decided that in a habeas corpus proceeding in which the Commonwealth’s failure to establish a prima facie case at the preliminary hearing is alleged, the proceeding is not limited to the evidence produced at the preliminary hearing. "Such a restriction would ... be inconsistent with the historical importance and the purpose of the great ‘freedom writ’ ‘to inquire into the cause of detention of any person----Id. at 123.
. Act of February 18, 1785, 2 Smith’s Laws 275, §§ 1 et seq.; as amended, 12 P.S. §§ 1871 et seq. (1967); repealed by J.A.R.A. effective June 27, 1978, recodified as 42 Pa.C.S.A. §§ 6501 et seq. (1979 Pamphlet).
