Yahoo has hired Google's first female engineer Marissa Mayer as its new CEO in hopes of turning around its fortunes.
Mayer, 37, edged out front-runner and acting chief executive Ross Levinsohn to become Yahoo's third CEO in a year.
She hopes to stem losses to Google and Facebook - which her high-profile predecessors failed to do.
Her hiring signaled the internet company is likely to renew its focus on web technology and products rather than beefing up online content.
Mayer, Google's 20th employee and first female engineer, has led a number of its businesses, and was credited for envisioning the clean, simple Google search interface still in use today, a major selling point for web surfers.
She joins the extremely thin ranks of female Silicon Valley CEOs and said that she was immediately interested when Yahoo's board reached out to her in mid-June.
"This is a very competitive and a tough space. I don't think that success is by any means guaranteed," she said.
"My focus is always end-users, great technology and terrific talent."
"It's a statement on Yahoo's part to go with a product-centric CEO choice," venture capitalist Marc Andreessen told the Fortune industry conference in Aspen, Colorado.
"It's a very big commitment on the board's part to pursue a product-centric strategy."
Tech companies can be turned around, he said, citing as an example Apple, which had teetered on the brink of bankruptcy before Steve Jobs returned to the company he co-founded.
"It's a big job that Marissa is stepping into," Andreessen said.
Mayer will start this week, when the company is scheduled to report its quarterly financial results, but she will not join the post-release conference call.
Last responsible for Google's local and location services, she joins fellow female tech chieftains Meg Whitman of Hewlett Packard, Virginia Rometty of International Business Machines and Ursula Burns of Xerox.
"A lot of people did not believe that Yahoo could get someone of the calibre of a Marissa Mayer to become the CEO at this stage," said S&P Capital IQ equity analyst Scott Kessler.
But Mayer's ascension comes as her profile at Google appeared to have diminished in recent months.
Shortly after Larry Page took over the helm from Eric Schmidt, she was excluded from a group of top executives reporting directly to the CEO and granted oversight over major strategic decisions.
Google's executive chairman Eric Schmidt said Mayer's hiring was a "real win" for Yahoo.
He, however, dismissed the notion that Mayer left because she was marginalised at Google.
"I promoted her through the ranks and she is now running this sort of big maps business, which is a lot of money," Schmidt said on the sidelines of the Fortune conference.
"It's a nice big step for her," he added. "It's a loss for Google."
Her appointment caps a tumultuous year at Yahoo.
In May, Scott Thompson resigned as CEO after less than 6 months on the job as a controversy flared up over his academic credentials.
Thompson replaced the controversial Carol Bartz, fired in September after failing to revitalize Yahoo.
"She's going to bring in a different perspective," said Paul Buchheit, a Google engineer who helped create Gmail and now a partner at startup-incubator Y-Combinator.
"It's pretty clear Yahoo needs a new direction and really a new vision."
Yahoo had been widely expected to go with Levinsohn, who in his few months at the helm tried to push a strategy of forging media partnerships to beef up the company's online content.
Mayer said Yahoo can excel as both a media and tech company.
"There's a very uninteresting debate happening around Yahoo between technology and media and it doesn't really make sense to me," she said.
"Because you look at most major technology companies, media is a big part of its business."
She said it was too soon to talk about restructuring, but was "sensitive to the fact that there has been a lot of change recently at Yahoo, so I don't want to make unnecessary changes."
Still, given her relative inexperience in media, observers are keen to see whether Mayer keeps an executive team that includes Mickie Rosen and Michael Barrett - two ex-News Corp executives installed by Levinsohn just months ago - and Levinsohn himself.
"The great products at Yahoo are still, in the main, media products," said John Battelle, founder of Federated Media Publishing.
Sources have said that Levinsohn was committed to building out Yahoo's own video programming and striking more syndication deals in pursuit of ads that command higher prices.
During his months-long tenure, Levinsohn ended a patent dispute with Facebook and signed the social network onto a partnership.
Days after his appointment, he ended a fractious episode in Yahoo's history by sealing a deal to sell as much as half of its stake in China's Alibaba, netting some $7.1 billion.
However the board may not have endorsed his media-focused, long-term plan to turn the ship around.
"I just think it was uninspired," one source said this week, referring to Levinsohn's strategy.
A second source close to the situation said Mayer would try to get Levinsohn to stay with the company.
"He's not happy but he's also not shocked given how the process had been dragging out," another source close to the company said.
"Whether Ross stays or not depends on the chemistry with Mayer and the commitment the company is willing to make to media. He won't lack for opportunities."
Mayer has established herself as one of Silicon Valley's leading women.
In April, Wal-Mart Stores nominated Mayer to its board of directors.
One Google insider described Mayer as being very intense and "intellectually impressive", though she could sometimes ruffle feathers.
"She does very little on an emotional, gut-level feel and lets the numbers speak for themselves," said the insider, who worked for years with Mayer.
"She can be difficult, and she can be stubborn, particularly when she has the data to support the facts of her argument."
A self-described "geek" with a Masters in computer science from Stanford, Mayer has frequently championed bringing more women into tech.