<?xml version="1.0"?>
<law><site_title>Virginia Decoded</site_title><site_url>https://vacode.org</site_url><law_id>78584</law_id><section_number>8.01-654</section_number><catch_line>When and where petition filed; what petition to contain</catch_line><edition url="https://vacode.org/2025/" slug="2025" current="TRUE" last_updated="">2025</edition><referred_to_by><reference>2.2-5517</reference><reference>8.01-407</reference></referred_to_by><structure><unit label="title" level="1" order_by="1" identifier="8.01">Civil Remedies and Procedure</unit><unit label="chapter" level="2" order_by="1" identifier="25">Extraordinary Writs</unit><unit label="article" level="3" order_by="1" identifier="3">Habeas Corpus</unit></structure><text>
						<section id="A"><p><span class="prefix-number">A.</span> 1. A <span class="dictionary">petition</span> for a <span class="dictionary">writ</span> of <span class="dictionary">habeas corpus</span> ad subjiciendum may be filed in the Supreme <span class="dictionary">Court</span> or any <span class="dictionary">circuit</span> <span class="dictionary">court</span> showing by <span class="dictionary">affidavits</span> or other <span class="dictionary">evidence</span> that the petitioner is detained without lawful authority. <a id="paragraph-281616" class="section-permalink" href="https://vacode.org/8.01-654/#A"><i class="fa fa-link"/></a></p></section>
						<section id="A2" class="indent-1"><p><span class="prefix-number">2.</span> A <span class="dictionary">petition</span> for <span class="dictionary">writ</span> of <span class="dictionary">habeas corpus</span> ad subjiciendum, other than a <span class="dictionary">petition</span> challenging a criminal <span class="dictionary">conviction</span> or sentence, shall be brought within one year after the <span class="dictionary">cause of action</span> accrues. A <span class="dictionary">habeas corpus</span> <span class="dictionary">petition</span> attacking a criminal <span class="dictionary">conviction</span> or sentence shall be filed within two years from the date of final <span class="dictionary">judgment</span> in the <span class="dictionary">trial</span> <span class="dictionary">court</span> or within one year from either final <span class="dictionary">disposition</span> of the direct <span class="dictionary">appeal</span> in state <span class="dictionary">court</span> or the time for filing such <span class="dictionary">appeal</span> has expired, whichever is later. <a id="paragraph-281617" class="section-permalink" href="https://vacode.org/8.01-654/#A2"><i class="fa fa-link"/></a></p></section>
						<section id="B"><p><span class="prefix-number">B.</span> 1. With respect to any such <span class="dictionary">petition</span> filed by a petitioner whose detention originated under criminal process, and subject to the provisions of &#xA7;&#xA0;<a class="law" title="Habeas corpus, appeals, writs of error and supersedeas" href="/17.1-310/">17.1-310</a>, only the <span class="dictionary">circuit</span> <span class="dictionary">court</span> that entered the original <span class="dictionary">judgment</span> or <span class="dictionary">order</span> resulting in the detention complained of in the <span class="dictionary">petition</span> shall have authority to <span class="dictionary">issue</span> <span class="dictionary">writs</span> of <span class="dictionary">habeas corpus</span>. If a district <span class="dictionary">court</span> entered the original <span class="dictionary">judgment</span> or <span class="dictionary">order</span> resulting in the detention complained of in the <span class="dictionary">petition</span>, only the <span class="dictionary">circuit</span> <span class="dictionary">court</span> for the city or county wherein the district <span class="dictionary">court</span> sits shall have authority to <span class="dictionary">issue</span> <span class="dictionary">writs</span> of <span class="dictionary">habeas corpus</span>. <span class="dictionary">Hearings</span> on such <span class="dictionary">petition</span>, where granted in the <span class="dictionary">circuit</span> <span class="dictionary">court</span>, may be held at any <span class="dictionary">circuit</span> <span class="dictionary">court</span> within the same <span class="dictionary">circuit</span> as the <span class="dictionary">circuit</span> <span class="dictionary">court</span> in which the <span class="dictionary">petition</span> was filed, as designated by the <span class="dictionary">judge</span> thereof. <a id="paragraph-281618" class="section-permalink" href="https://vacode.org/8.01-654/#B"><i class="fa fa-link"/></a></p></section>
						<section id="B2" class="indent-1"><p><span class="prefix-number">2.</span> Such <span class="dictionary">petition</span> shall contain all <span class="dictionary">allegations</span> the <span class="dictionary">facts</span> of which are known to petitioner at the time of filing and such <span class="dictionary">petition</span> shall enumerate all previous applications and their <span class="dictionary">disposition</span>. No <span class="dictionary">writ</span> shall be granted on the basis of any <span class="dictionary">allegation</span> the <span class="dictionary">facts</span> of which petitioner had knowledge at the time of filing any previous <span class="dictionary">petition</span>. The provisions of this section shall not apply to a petitioner&#x2019;s first <span class="dictionary">petition</span> for a <span class="dictionary">writ</span> of <span class="dictionary">habeas corpus</span> when the sole <span class="dictionary">allegation</span> of such <span class="dictionary">petition</span> is that the petitioner was deprived of the right to pursue an <span class="dictionary">appeal</span> from a final <span class="dictionary">judgment</span> of <span class="dictionary">conviction</span> or <span class="dictionary">probation</span> <span class="dictionary">revocation</span>, except that such <span class="dictionary">petition</span> shall contain all <span class="dictionary">facts</span> pertinent to the denial of <span class="dictionary">appeal</span> that are known to the petitioner at the time of the filing, and such <span class="dictionary">petition</span> shall certify that the petitioner has filed no prior <span class="dictionary">habeas corpus</span> <span class="dictionary">petitions</span> attacking the <span class="dictionary">conviction</span> or <span class="dictionary">probation</span> <span class="dictionary">revocation</span>. <a id="paragraph-281619" class="section-permalink" href="https://vacode.org/8.01-654/#B2"><i class="fa fa-link"/></a></p></section>
						<section id="B3" class="indent-1"><p><span class="prefix-number">3.</span> Such <span class="dictionary">petition</span> may allege detention without lawful authority through challenge to a <span class="dictionary">conviction</span>, although the sentence imposed for such <span class="dictionary">conviction</span> is suspended or is to be served subsequently to the sentence currently being served by petitioner. <a id="paragraph-281620" class="section-permalink" href="https://vacode.org/8.01-654/#B3"><i class="fa fa-link"/></a></p></section>
						<section id="B4" class="indent-1"><p><span class="prefix-number">4.</span> In the event the <span class="dictionary">allegations</span> of illegality of the petitioner&#x2019;s detention can be fully determined on the basis of recorded matters, the <span class="dictionary">court</span> may make its determination whether such <span class="dictionary">writ</span> should <span class="dictionary">issue</span> on the basis of the record. <a id="paragraph-281621" class="section-permalink" href="https://vacode.org/8.01-654/#B4"><i class="fa fa-link"/></a></p></section>
						<section id="B5" class="indent-1"><p><span class="prefix-number">5.</span> The <span class="dictionary">court</span> shall give <span class="dictionary">findings</span> of <span class="dictionary">fact</span> and conclusions of <span class="dictionary">law</span> following a determination on the record or after <span class="dictionary">hearing</span>, to be made a part of the record and transcribed. <a id="paragraph-281622" class="section-permalink" href="https://vacode.org/8.01-654/#B5"><i class="fa fa-link"/></a></p></section>
						<section id="B6" class="indent-1"><p><span class="prefix-number">6.</span> If petitioner alleges as a ground for illegality of his detention the inadequacy of <span class="dictionary">counsel</span>, he shall be deemed to <span class="dictionary">waive</span> his <span class="dictionary">privilege</span> with respect to communications between such <span class="dictionary">counsel</span> and himself to the extent necessary to permit a full and fair <span class="dictionary">hearing</span> for the alleged ground. <a id="paragraph-281623" class="section-permalink" href="https://vacode.org/8.01-654/#B6"><i class="fa fa-link"/></a></p></section></text><history>Code 1950, &#xA7; 8-596; 1958, c. 215; 1968, c. 487; 1977, c. 617; 1978, c. 124; 1995, c. 503; 1998, c. 577; 2005, c. 836; 2019, cc. 8, 48; 2021, Sp. Sess. I, cc. 344, 345.</history><metadata></metadata></law>
