The Irish former two-weight world champion, who has not fought since suffering a serious leg injury in July 2021, is set to take on American Michael Chandler.
The details are yet to be finalised but it will come after the pair first try to outwit each other as team coaches in Ultimate Fighter.
UFC president Dana White said in a video posted on his Twitter account: "Conor McGregor and Michael Chandler will go head to head as the coaches of the Ultimate Fighter - Team McGregor versus Team Chandler.
"This season premieres Tuesday, May 30 and runs through Tuesday, August 15.
"Then, at the end of the season, McGregor and Chandler will fight. I do not have a date or a location for that, but we will announce it soon."