The pairing previously met earlier in the year at UFC 196. McGregor was expected to challenge then UFC Lightweight Champion Rafael dos Anjos, but dos Anjos pulled out due to a broken foot only 11 days before the event. Diaz eventually replaced him and the bout was shifted to the welterweight division. Diaz won the fight via rear-naked choke in the second round. Their rematch was originally expected to take place at UFC 200, but everything changed during mid-April, as a disagreement between McGregor and the UFC, regarding his media schedule, led to his removal from the event and then Diaz was also pulled out.
A welterweight contest between former WEC Welterweight Champion and former interim UFC Welterweight Champion Carlos Condit and Demian Maia, a former UFC Middleweight Championship challenger, was scheduled to take place at this event, but was moved a week later to headline an already scheduled FOX event. Sultan Aliev was expected to face Hyun Gyu Lim at the event. However, Aliev pulled out of the fight in early August citing a wrist injury.[15] Lim faced promotional newcomer Mike Perry. On August 5, Sean Strickland pulled out of his planned bout against Tim Means due to a knee injury.[17] He was replaced by promotional newcomer Sabah Homasi.
The Ultimate Fighter: China winner Ning Guangyou tested positive for clenbuterol from an out-of-competition sample taken May 19, but USADA found he ingested the substance without fault or negligence. They reviewed the evidence of the case - Guangyou's whereabouts, dietary habits and the lab reports showing "very low parts per billion concentrations" of the substance - and determined that it very likely came from tainted meat, as countries like Mexico and China have a high risk for meats contaminated with the substance. Guangyou will not face a suspension. He was expected to face Marlon Vera at this event, but due to this incident the bout was pushed back one week for UFC on Fox: Maia vs. Condit.[19]