Greek actress Katerina Lehou, in the role of a high priestess, lit the torch after offering a 'prayer' to Apollo, the Greek god of sun, light and music.
On a sunny rehearsal day before the official ceremony, a flame is lit according to the traditional method. This flame is kept in reserve in case the sun is not out on the day of the official ceremony. In that case the torch can be lit from this flame, which is kept in a security lamp.
The last time the sun did not shine and the flame from the security lamp was used was in the ceremony for the Sydney Olympic Games in 2000. This was also the case for the 1956 Melbourne Olympic Games.
About 2,500 people attended Wednesday's dress rehearsal.
Wednesday's ceremony started with three beats of a drum held by an actress playing the part of an ancient priestess.
Come rain or shine on Thursday's official lighting ceremony, Rio de Janeiro has now secured its Olympic flame, which will burn in the Brazilian host city throughout the August 5-21 games.
The flame lit before the Temple of Hera will be kept as a backup.
The meticulously choreographed ceremony was held in Ancient Olympia, southern Greece, where the Olympics of antiquity were held for more than 1000 years.
AFter the flame is lit on Thursday, the next six days will see hundreds of runners â including a Syrian refugee who has claimed asylum in Greece â carry the torch for 2,234 kms through Greece.
The flame will be handed over to Rio officials on April 27.
An actress playing a priestess releases a dove at the ancient stadium of Olympia on April 20, 2016 during a dress rehearsal of the lighting ceremony of the Olympic flame in ancient Olympia, the sanctuary where the Olympic Games were born in 776 BC
About The Gallery
A dress rehearsal held in Ancient Olympia in Greece on Wednesday saw a flame being lit before the Temple of Hera. The flame will be a back-up in case cloudy skies derail Thursday's main ceremony when the lighting of the Olympic flame will kickstart the countdown for the Rio Games