The Undertaker and Brock Lesnar will headline SummerSlam 2015 in a match that has been nearly 17 months in the making. As the Deadman looks to avenge the conclusion of his undefeated WrestleMania streak, the result of SummerSlam’s main event will have a major impact on WWE going forward, including the card for WrestleMania 32.

Assuming both wrestlers are healthy, they’ll both be in marquee matches for WWE’s biggest pay-per-view of 2016. The biggest question remains whether or not The Undertaker and Lesnar will be facing each other for a third time in the last two years.

If Lesnar beats The Undertaker at Barclays Center on Aug. 23, it seems inevitable that the two will have another match at WrestleMania 32. Having been in WWE for 25 years and establishing himself as one of the most iconic figures in wrestling history, The Undertaker’s legacy could certainly survive another loss to one of the most dominant WWE superstars in history. But it would make little sense to have the babyface lose two big matches and never get his revenge.

No matter the result at SummerSlam, WWE could be building towards The Undertaker vs. Lesnar III at WrestleMania 32. Their rematch is much anticipated, and a third and final match would be a fitting end to their feud.

If The Undertaker wins in Brooklyn, Lesnar could get his win back at WrestleMania 32. It would allow him to recover from losing at SummerSlam, giving him the 2-1 edge over the Phenom, as WWE looks to keep him booked stronger than any wrestler in the company. There’s been much speculation that The Undertaker’s match in front of a crowd of 100,000 fans at AT&T Stadium could be his last, and it would follow with wrestling tradition for him to retire with a loss.

There’s still a good chance that The Undertaker and Lesnar will face different opponents at WrestleMania 32, but the Deadman would likely have to win at SummerSlam in order for that to happen. There are a handful of opponents that could potentially face either wrestler in Dallas.

Sting would be the obvious opponent for The Undertaker, considering it’s a match that fans have wanted to see for years. The future WWE Hall of Famers will have a combined age of 108 years at WrestleMania 32, and it might be the last chance for the two legends to ever have a match.

John Cena vs. The Undertaker could also work, though a match with Sting or Lesnar is much more likely for the Deadman. Cena has been WWE’s top star for a decade, but he’s never faced the top WrestleMania performer at the PPV.

Ending the feud between Lesnar and The Undertaker at SummerSlam would leave a few WrestleMania options for Paul Heyman’s client. Lesnar could find himself back in the WWE World Heavyweight Championship picture, and he’s one of the early favorites to win the 2016 Royal Rumble. Lesnar was about to reclaim the title at WWE Battleground before The Undertaker interfered.

A match between Lesnar and The Rock can’t be discounted as a possibility. The Rock has admitted that there was a plan for the two superstars to fight at WrestleMania 30, before he got hurt in his WrestleMania 29 match against Cena. If The Rock is on the WrestleMania 32 card but he doesn’t have a match with Lesnar, he’ll likely take on Triple H.