The two flight data recorders from the EgyptAir jet that crashed into the Mediterranean have now been recovered, investigators say
A team searching the area where the passenger plane is believed to have come down said on Friday that the second recorder was "retrieved in several pieces".
But it managed to "successfully retrieve" the memory unit which investigators said was the "most important" component.
The device records information about the speed, altitude and direction of the plane.
The discovery comes a day after the aircraft's cockpit voice recorder was spotted and recovered.
Both devices - which are vital to explaining what went wrong - are situated in the aircraft's tail.
They will be transferred to the Egyptian city of Alexandria to be examined by investigators and prosecutors. Analysis of the voice recorder is already under way.
The EgyptAir Airbus A320 was travelling to Cairo from Paris when it crashed on May 19 between the Greek island of Crete and the Egyptian coast.
All 66 passengers and crew on board the jet were killed in the crash, the cause of which remains a mystery.
Two specialist vessels - Laplace and John Lethbridge - have been carrying out deep water searches for wreckage of the jet.
French investigators, who have been working alongside their Egyptian counterparts, had detected signals from one of the black boxes earlier this month.
Some debris from the plane - including life vests, passenger belongings and pieces of wreckage - have already been found.
Egyptian authorities believe terrorism is more likely to have caused the crash than equipment failure, although no militant group has so far claimed responsibility.
Some aviation experts have said the erratic flight path of the jet before it vanished off radar suggests a bomb blast or a struggle in the cockpit.
Leaked data has indicated a sensor had detected smoke in a toilet and a fault in two of the plane's cockpit windows in the last moments of the flight.