Air Canada Flight AC7664, a flight operated by its regional partner PAL Airlines, was heading from Newark Liberty International Airport to Halifax, Nova Scotia, on Wednesday afternoon.
Officials say that during the flight, the captain experienced a medical episode and was removed from the flight deck.
A passenger on the flight who spoke to ABC News revealed harrowing details of the emergency.
"The flight started swerving violently. Within a few moments, flight attendants entered the cockpit frantically, and a few moments later he was dragging one of the pilots out of the cockpit," said the passenger, Rodney McDonald.
He said the pilot appeared to have some sort of medical episode. He and other passengers jumped in to help the crew.
"It was really horrifying. Myself and about four others worked to get him under control. It was a fairly strenuous 40 minutes keeping him down," McDonald said.
The first officer then took control of the aircraft, a De Havilland Q400, and diverted the flight to Boston, where it landed safely with 61 customers on board.
"Every thought goes through your mind. You start praying. My boys instantly started praying... so I'm told. I was at the front of the plane. I'm just grateful for how it all ended."
Pilots are trained to fly aircrafts and land safely without the assistance of a second pilot.
Passengers say the captain was not coherent until the emergency landing when he appeared to come out of the medical episode.
Those on the flight say they used seatbelts to restrain his arms and legs.
Medical experts do advise that if you are ever in that situation and someone appears to be having a seizure, it is best not to hold them down so as to avoid further injury but instead clear the area of sharp objects and turn the person gently on their side while keeping their airway clear.
Video shows first responders carefully removing the pilot from the aircraft. Authorities say he was taken to Massachusetts General Hospital where he is receiving medical treatment.
Work is now underway by the airline to provide the impacted customers with travel arrangements to complete their journeys as soon as possible.
---------
* Get Eyewitness News Delivered
* Download our connected TV app
* More local news
* Send us a news tip
* Download the abc7NY app for breaking news alerts on the go