Djokovic and Juan Martín del Potro have met 20 times with Djokovic leading 16–4. Djokovic won their first four meetings, before back to back victories for del Potro at the 2011 Davis Cup and their Bronze medal match at the 2012 Summer Olympics in straight sets. However, in 2013, Djokovic got the upper hand on the rivalry again and won two of the most important matches between them to date; an epic five-setter at the 2013 Wimbledon Championships semifinals which was the longest Wimbledon semifinal at the time, and a thrilling three-setter at the 2013 Shanghai Masters final. In the same year, del Potro defeated Djokovic en route to his second Masters final, at the 2013 Indian Wells Masters, where he lost to Nadal. Del Potro upset Djokovic in the first round at the 2016 Olympics in Rio en route to the final, where he lost to Murray. Djokovic defeated del Potro in three close sets in the final of the 2018 US Open, which was the first grand slam final for del Potro since his victory at the 2009 US Open.