Simone Biles showed off her gravity-defying moves and explosive tumbles on the floor exercise to win a record-equalling fourth gold 

A day after a wobbly performance on the beam ended the American's hopes of leaving Rio with a record haul of five golds for a female gymnast, she was back on form to capture the floor title with 15.966 points.

Aly Raisman completed a 1-2 for the United States by earning 15.500, while Briton Amy Tinkler's crowd-pleasing routine to Pretty Woman earned her bronze.

However, there was no doubting who was the star of the show.

A sultry routine full of hip-swinging moves to samba music had the Brazilian crowd on their feet as she flew high into the air to execute her trademark element, a soaring double layout with half-twist at the end.

Cries of "oohs" and "aahs" accompanied each of her complex tumbling passes, she drew gasps of admiration as she balanced her entire body weight on her right toes while spinning around twice and had the audience roaring their approval as she bounced her bottom off the floor to strike her final pose.

The ear-to-ear grin, which had disappeared on Monday after she ended up with bronze on the beam, was back on show again and Biles gave the crowd a thumbs up as she waited for her score.

The mark that did flash up not only earned her a fifth medal at her debut Games, it was also the highest score of her four floor performances over the past 10 days.

The 19-year-old team, all around, vault and floor exercise champion became the first woman in 32 years, and fifth overall, to win four golds at a single Games.

The Soviet Union's Larisa Latynina (Melbourne 1956), Hungary's Agnes Keleti (Melbourne 1956), Czech Vera Caslavska (Mexico City 1968) and Romania's Ecaterina Szabo (Los Angeles 1984) were the only other women to have four golds at a single Games.

Meanwhile, Germany's Fabian Hambuechen has taken Olympic gold at the fourth attempt after he came out on top in the men's horizontal bar final.

The 28-year-old was the first to mount the bar and he showed no fear as he pulled off four high-flying release-and-catch moves.

Two full twisting somersaults over the bar - a Cassina followed by a Kolman - proved to be the highlights of a routine that ended with the German winding his arms backwards to steady his feet on dismount.

However, the man who used to fly through the air wearing spectacles when he made his Olympic debut in 2004 faced an anxious wait to see if any of the remaining seven finalists would surpass his score of 15.766.