Weidman will go in for knee surgery on legs on Tuesday, and is expected to take about four weeks to recover, according to a report on Wednesday’s episode of UFC Tonight.

After that, he’s expected to return to training and be on track to face Lyoto Machida, who was set to challenge Weidman at UFC 173. The two will now headline UFC 175 on July 5 in Las Vegas.

The issue that forced Weidman off of the May 24 date is two-fold. He has had a torn meniscus in each knee since high school. Up until now, the injury in his left knee has flared up every so often, but he’s been able to work through it.

The knee recently flared up twice within a week, so he decided it was time to get it fixed. And since he was going under the knife for the left knee, Weidman decided to have the right repaired at the same time so that he can move on without worrying about either knee flaring up again.

UFC 175 is the first of two events in the same venue on back-to-back days. Weidman and Machida will headline the pay-per-view event on Saturday, July 5. The Ultimate Fighter 19 Finale will take place the following night with BJ Penn vs. Frankie Edgar headlining. Both events will take place at the Mandalay Bay Event Center in Las Vegas.