It was the 11th career gold for the 29-year-old, giving him the most Olympic titles behind US swimmer Michael Phelps.