Brazil's Thiago Pereira was second and Japan's Kosuke Hagino third. American Michael Phelps, who was defending the title he won at the past two Olympics, finished fourth.