Tony Ferguson will return to the octagon against Anthony Pettis at UFC 229.

Former interim UFC lightweight champion Ferguson hasn’t competed since last October but will end his year-long layoff against ex-champ Pettis, two people with knowledge of the booking told MMAjunkie on Thursday night. The people requested anonymity because the UFC has yet to make an official announcement.

Pettis seemingly confirmed the fight in a tweet later Thursday night.

UFC 229 takes place Oct. 6 at T-Mobile Arena in Las Vegas. The main card, which is headlined by a 155-pound title fight between champ Khabib Nurmagomedov and Conor McGregor, airs on pay-per-view following prelims streamed on FS1 and UFC Fight Pass.

For the past two days, Ferguson (23-3 MMA, 13-1 UFC) has been teasing a return at UFC 229 on Twitter. He stated in one tweet that he’s training for “three opponents,” hinting that he could potentially serve as a replacement for the Nurmagomedov vs. McGregor headliner should either man pull out.

Ferguson, No. 2 in the latest USA TODAY Sports/MMAjunkie lightweight rankings, won the interim belt with a submission of Kevin Lee at UFC 216 in October. He was supposed to fight Nurmagomedov for the undisputed belt at UFC 223 in April but suffered a knee injury that forced him to withdraw. Ferguson, who is on a 10-fight winning streak, was then stripped of the interim belt.

No. 10 Pettis (21-7 MMA, 8-6 UFC) is coming off a second-round submission of Michael Chiesa at UFC 226 in July. He’s alternated wins and losses over his past six fights.

The latest UFC 229 lineup includes:

Champ Khabib Nurmagomedov vs. Conor McGregor – for lightweight title Derrick Lewis vs. Alexander Volkov Jussier Formiga vs. Sergio Pettis Dominick Reyes vs. Ovince Saint Preux Felice Herrig vs. Michelle Waterson Yana Kunitskaya vs. Lina Lansberg Sean O’Malley vs. Jose Quinonez Ryan LaFlare vs. Tony Martin Scott Holtzman vs. Alan Patrick Nik Lentz vs. Gray Maynard Tony Ferguson vs. Anthony Pettis

For more on UFC 229, check out the UFC Rumors section of the site.