SAN FRANCISCO (AP) — A Northern California man was rescued after his 50-foot boat was struck by a whale while he sailed alone about 40 miles off the western coast of Mexico, authorities said.

The impact from the collision knocked out the sailboat's steering and the vessel began taking on water late Tuesday, U.S. Coast Guard Petty Officer 2nd Class Pamela Boehland said.

Max Young of Sacramento stuffed a mattress into the hole caused by the whale, turned on four bilge pumps and was "trying to bail out water as fast as he could, because he didn't know how long it would take to be rescued," his wife, Debra Young, told The Associated Press.

He also activated an emergency beacon, which alerted the Coast Guard.

"His EPIRB delivered an exact position to us, contact information that allowed us to quickly discern the sail plan of and number of persons on the vessel, and really took a lot of the search out of the search and rescue," said Lt. Charles Kelly, of the Coast Guard's command center in Alameda, Calif.

With that information, officials at the command center were able to immediately direct a merchant ship, which was about 60 miles away, to the sinking craft.

Meanwhile, as the rescue efforts were just beginning, Young was initially unaware that the boat was taking on water, his wife said.

"He was steering the boat and trying to get it back on course," Debra Young said. "It took him a while to realize he didn't have any steerage at all. It took him a bit longer to realize he was taking on water."

When the freighter arrived at around 4 a.m. Wednesday, Young scrambled off his boat by a rope ladder thrown by the ship's crew.

Young had been on the final leg of a trip from the East Coast to a marina in Emeryville, Calif., when the collision took place. The 67-year-old has been sailing for at least 30 years, but having worked on boats with his father, who was a commercial fisherman, he's been on the ocean most of his life, his wife said.

Debra Young said she has been able to talk to her husband while he's on board the merchant ship. He's not expected to make it back to Sacramento for another week or so.

Also on HuffPost:

Loading Slideshow...
  • A Humpback whale jumps in the surface of the Pacific Ocean at the Uramba Bahia Malaga natural park in Colombia, on July 16, 2013. Humpback whales (Megaptera novaeangliae) migrate annually from the Antarctic Peninsula to peek into the Colombian Pacific Ocean coast, with an approximate distance of 8,500 km, to give birth and nurse their young. Humpback whales have a life cycle of 50 years or so and is about 18 meters. AFP PHOTO/Luis ROBAYO

  • A Humpback whale jumps in the surface of the Pacific Ocean at the Uramba Bahia Malaga natural park in Colombia, on July 16, 2013. Humpback whales (Megaptera novaeangliae) migrate annually from the Antarctic Peninsula to peek into the Colombian Pacific Ocean coast, with an approximate distance of 8,500 km, to give birth and nurse their young. Humpback whales have a life cycle of 50 years or so and is about 18 meters. AFP PHOTO/Luis ROBAYO

  • A Humpback whale jumps in the surface of the Pacific Ocean at the Uramba Bahia Malaga natural park in Colombia, on July 16, 2013. Humpback whales (Megaptera novaeangliae) migrate annually from the Antarctic Peninsula to peek into the Colombian Pacific Ocean coast, with an approximate distance of 8,500 km, to give birth and nurse their young. Humpback whales have a life cycle of 50 years or so and are about 18 meters long. AFP PHOTO/Luis ROBAYO

  • A Humpback whale jumps in the surface of the Pacific Ocean at the Uramba Bahia Malaga natural park in Colombia, on July 16, 2013. Humpback whales (Megaptera novaeangliae) migrate annually from the Antarctic Peninsula to peek into the Colombian Pacific Ocean coast, with an approximate distance of 8,500 km, to give birth and nurse their young. Humpback whales have a life cycle of 50 years or so and are about 18 meters long. AFP PHOTO/Luis ROBAYO

  • NUUK, GREENLAND - JULY 27: Boats follow a whale as it swims in the water on July 27, 2013 in Nuuk, Greenland. (Photo by Joe Raedle/Getty Images)

  • A whale jumps to the surface off the coast of Libreville in Gabon on August 19, 2013. AFP PHOTO / STEPHANE BERRY

  • A Southern Right Whale breaches on September 5, 2013 in Hermanus, which has become known as a mecca for whale watching. During the southern hemisphere winter months (June - October) the Southern Right Whales migrate to the coastal waters of South Africa, with in excess of 100 whales known to be in the Hermanus area. Whilst in the area, the whales can be seen with their young as they come to Walker Bay to calve and mate. AFP PHOTO / ALEXANDER JOE

  • A Southern Right Whale breaches on September 5, 2013 in Hermanus, which has become known as a mecca for whale watching. During the southern hemisphere winter months (June - October) the Southern Right Whales migrate to the coastal waters of South Africa, with in excess of 100 whales known to be in the Hermanus area. Whilst in the area, the whales can be seen with their young as they come to Walker Bay to calve and mate. AFP PHOTO / ALEXANDER JOE

  • A humpback whale tail breaches off Sydney Heads at the beginning of whale watching season during a Manly Whale Watching tour on June 23, 2011 in Sydney, Australia. (Photo by Cameron Spencer/Getty Images)

  • A humpback whale emerges from the surface of the Pacific Ocean at the Uramba Bahia Malaga natural park in Colombia, on July 22, 2011. (LUIS ROBAYO/AFP/Getty Images)

  • A humpback whale is seen breaching outside of Sydney Heads at the beginning of whale watching season during a Manly Whale Watching tour on June 23, 2011 in Sydney, Australia.

  • In this photo taken July 21, 2011, a baby gray whale is seen with its mother in the Klamath River in Klamath, Calif.

  • An 8.5 metre-long juvenile humpback whale remains stranded on Anaconda beach in La Paloma, department of Rocha, in southeastern Uruguay, on January 27, 2011. AFP

  • A humpback whale is seen breaching outside of Sydney Heads at the beginning of whale watching season during a Manly Whale Watching tour on June 23, 2011 in Sydney, Australia. (Photo by Cameron Spencer/Getty Images)

  • The tail of a humpback whale emerges from the surface of the Pacific Ocean at the Uramba Bahia Malaga natural park in Colombia, on July 22, 2011. (LUIS ROBAYO/AFP/Getty Images)

  • A franco-austral whale surfaces off the coast of Antoniopolis, in the Uruguayan department of Rocha, 220 km east of Montevideo, on September 22, 2012 during the migration to the south. AFP PHOTO/Pablo PORCIUNCULA

  • A franco-austral whale surfaces off the coast of Antoniopolis, in the Uruguayan department of Rocha, 220 km east of Montevideo, on September 22, 2012 during the migration to the south. AFP PHOTO/Pablo PORCIUNCULA

  • A Franco-austral whale surfaces off the coast of Arachania, Rocha, 225 km east of Montevideo, Uruguay, on September 21, 2012 during the migration to the south. AFP PHOTO/Pablo PORCIUNCULA

  • Watch As Whale Jumps Out Of Water And Bumps Canoe

    A couple canoeing in Maui film the moment when a breaching whale his their canoe while paddling out in the ocean.