There was a scare yesterday with an ending passengers called miraculous. They braced for crash when the landing gear failed to come out at jfk airport. Reporter: This photo, posted online by photographer, shows the twisted landing gear of the airbus a330, as it tried to land at new york's kennedy airport wednesday. It does not appear normal. It cocked at 90 degrees. Reporter: Outside, the plane's nose gear has become twisted sideways, as inside, passengers were told to brace for an emergency landing. My mother was crying. All the plane, everybody was crying inside. It was a big panic inside of the plane. Reporter: It is a potential disaster in the making. Air traffic controllers divert the plane to jfk's longest runway, 14,000 feet long, as emergency crews watch helplessly on the ground. And then, as the plane and its distressed passengers are just 15 feet from touchdown, suddenly, inexplicably, the landing gear comes forward. Looks like it's straight now, the gear. Reporter: One emergency worker telling "the new york post," it was like the hands of god turned the wheel. A lot of things go through your mind. That might be the last time you're going to fly or see anybody. It worked out fine. Reporter: For many, what was the scare of their lives, turning into a landing as smooth as sitting. For "good morning america," rob nelson, abc news, new york.

This transcript has been automatically generated and may not be 100% accurate.

{"id":17336532,"title":"Plane Lands Safely in NY After Landing-Gear Failure","duration":"3:00","description":"Passengers braced for a crash when their plane's landing-gear failed.","url":"/GMA/video/plane-lands-safely-ny-landing-gear-failure-17336532","section":"GMA","mediaType":"Default"}