PHILADELPHIA (AP) – A few weeks ago, Tito Ortiz was one loss away from losing his job with the UFC.

After a stunning win over Ryan Bader and a fortunate twist of events, the veteran mixed martial arts star improbably is a UFC headliner again.

READ MORE: Arson Suspected In 750-Acre Pacific Palisades Brush Fire; Mandatory Evacuations Ordered

Ortiz will fight Rashad Evans in the main event at UFC 133 in Philadelphia on Aug. 6, UFC president Dana White confirmed Thursday.

READ MORE: Demonstrators Protesting Conflict Between Israel And Palestine March In Westwood

Evans is the top contender for UFC light heavyweight champion Jon Jones’ belt. He was scheduled to fight Phil Davis, but he injured his knee in training camp.

Ortiz was a UFC champion for more than three years during the promotion’s early years, but he hadn’t won a fight in nearly five years before stopping Bader in the first round at UFC 132 on July 2.

MORE NEWS: Kobe Bryan Posthumously Inducted Into Hall Of Fame, With Emotional Remarks From Vanessa Bryant

(Copyright 2011 by The Associated Press. All Rights Reserved.)