At the Olympic Games, also held at the All England Club in Wimbledon, del Potro faced Roger Federer in the semifinals, which resulted in the longest "best of three sets" tennis match by duration in history, lasting four hours and 26 minutes, half an hour longer than the previous record holder, a Milos Raonic – Jo-Wilfried Tsonga match that took place three days earlier; the final set took two hours and 43 minutes. Del Potro lost the match, 6–3, 6–7, 17–19. Less than two hours after this marathon, del Potro took to the tennis court again with Gisela Dulko for their quarterfinal mixed doubles match against Lisa Raymond and Mike Bryan, which they lost. Two days later, del Potro defeated Novak Djokovic in the bronze-medal match. It was del Potro's first victory over Djokovic, excluding a win that occurred in the Davis Cup where Djokovic retired after dropping the first set.