*502 OPINION BY
¶ 1 The Commonwealth of Pennsylvania appeals from the April 9, 2002 order of the Court of Common Pleas of Philadelphia County which vacated the sentence imposed on Appellee, Christopher Holmes. After careful review, we reverse.
¶ 2 On May 17, 1996, Appellee entered a negotiated guilty plea to manufacture, delivery, or possession with intent to manufacture or deliver a controlled substance (35 P.S. § 780-113(a)(30)), and criminal conspiracy (18 Pa.C.S.A. § 903). With respect to the violation of 35 P.S. § 780-113(a)(30), the trial court sentenced Appel-lee to a term of imprisonment of “time in” (time served: from February 27, 1996 to May 17, 1996) to 23 months’ incarceration, with immediate parole. The court also sentenced Appellee to two years’ reporting probation, both sentences running consecutively. The court imposed no further penalty on the conspiracy charge.
¶ 3 Appellee was alleged to have violated his probation and on September 16,1997, a probation violation hearing was held. Ap-pellee did not appear for this hearing. After the hearing, the trial court revoked Appellee’s probation and sentenced him to eleven and one-half to twenty-three months’ incarceration.
¶ 4 On April 15, 1998, Appellee was paroled to the Eagerville Hospital substance abuse recovery program. In October 1998, Appellee was convicted of other drug offenses and was sentenced accordingly.
¶ 5 As a result of the 1998 convictions, on May 21, 2001, the trial court, after a hearing, revoked Appellee’s parole 1 with respect to the sentence imposed on September 16, 1997. The court sentenced Ap-pellee to three to six years’ imprisonment, to run concurrently with any other sentence being served by Appellee. Appellee was also given credit for time served on this case. Appellee did not file any post-sentence motion and did not seek a modification of his sentence.
¶ 6 The next activity on this case was on April 9, 2002 when the trial court, sua sponte, issued an order vacating the sentence imposed on May 21, 2001. The Commonwealth has taken the instant appeal from the April 9, 2002 order, raising this single issue: “Was the lower court’s ex parte order purporting to vacate defendant’s sentence entered without jurisdiction?” Brief for the Commonwealth, at 5.
¶ 7 The Commonwealth argues that the trial court lacked jurisdiction to vacate the May 21, 2001 sentence. We agree. Following the imposition of sentence on May 21, 2001, Appellee had ten days to file a post-sentence motion challenging his sentence. See Pa.R.Crim.P. 708(D). It is undisputed that Appellee did not file a post-sentence motion in this case following the imposition of the May 21, 2001 sentence. Therefore, there was no post-sentence motion on the basis of which the trial court could have vacated the May 21, 2001 sentence.
¶ 8 Despite the absence of a post-sentence motion, we note that under certain circumstances, the trial court can, on its own motion, vacate or modify a defendant’s sentence. However, the trial court must undertake such action within 30 days of the imposition of sentence. Under 42 Pa.C.S.A. § 5505, “a court upon notice to the parties may modify or rescind any order within 30 days after its entry, not *503 withstanding the prior termination of any term of court, if no appeal from such order has been taken or allowed.” In the instant case, the trial court entered an order on April 9, 2002 purporting to vacate the May 21, 2001 sentence. The April 9, 2002 order was clearly entered beyond the 30-day period prescribed in Section 5505. It was entered more than ten months after the May 21, 2001 sentence. We are aware of no authority pursuant to which a trial court may, sua sponte, vacate a sentence more than ten months after the sentence was imposed. Accordingly, we conclude that the trial court lacked jurisdiction to vacate the sentence imposed on May 21, 2001. As such, we must reverse the order of April 9, 2002 which was entered without jurisdiction.
¶ 9 We recognize that the April 9, 2002 order indicated that the May 21, 2001 sentence was an illegal sentence. We also recognize that the legality of a sentence may be challenged at any time and may be raised by this Court
sua sponte.
However, the trial court must have jurisdiction before it may address the issue of the legality of sentence. As our Supreme Court noted in
Robinson v. Com., Pennsylvania Bd. of Probation and Parole,
The establishment of jurisdiction is of equal importance as the establishment of a meritorious claim for relief. Jurisdiction is the predicate upon which a consideration of the merits must rest. Where the jurisdiction of the court has been lost because of the staleness of the complaint, the attractiveness of an argument on the merits is of no moment because the tribunal is without the power to grant the requested relief.
Id.
at 860 (citations omitted). Along the same lines, where a court lacks jurisdiction because a petition was untimely filed, the merits of the petition cannot cure the lack of jurisdiction. In
Commonwealth v. Fahy,
¶ 10 Citing
Commonwealth v. Jones,
¶ 11 Another case cited by Appellee,
Commonwealth v. Cole,
To grant a new trial And [sic] a motion in arrest of judgment simultaneously was contrary to common sense; if the motion in arrest of judgment was proper, Cole could not be tried again whereas, if the new trial was proper, the motion would have to fail. What the court did was simply to correct, by its order of June 18, a mistake which was plain on the face of the order and make the order of March 3 speak the truth.
Id. The Supreme Court also noted that there is a difference between reversing a judgment and correcting a clerical mistake. Id. at 341 n. 1.
¶ 12 In the instant case, we cannot state that the sentence imposed on May 21, 2001 contained a mistake which was plain from the face of the order. Further, the sentence was not facially self-contradictory or irreconcilable nor did it contain a clerical error. The trial court’s order vacating Appellee’s sentence is not a correction of a clerical error. Thus, the instant case is distinguishable from Cole. Also, Cole cannot be read as standing for the proposition that a trial court may vacate an allegedly illegal sentence at any time. Accordingly, we will reverse the order of the trial court and reinstate the sentence imposed on May 21, 2001. Any challenges to the legality of that sentence may properly be raised in a collateral proceeding.
¶ 13 Order reversed. The sentence imposed on May 21, 2001 is reinstated.
Notes
. Although the parties state that the May 21, 2001 order found Appellee in violation of his probation, a review of the record shows that the order found Appellee in violation of his parole.
