Sheryl Sandberg announced Wednesday that she is stepping down as chief operating officer of Facebook’s parent company, Meta. The 52-year-old executive has worked for the company since 2008, and she has overseen its operations through stages from its IPO in 2012 to a $1 trillion valuation last year.

For investors who have held Facebook stock throughout Sandberg’s tenure at the company, it’s been a lucrative, if sometimes volatile, ride. If you invested $1,000 in Facebook when it went public on May 18, 2012, the market value of your shares was worth $4,964.21 at Wednesday’s close, according to CNBC’s calculations.

Over the same period, a $1,000 investment in the S&P 500 Index would have risen 216% to around $3,166, compared to Meta’s return of 396%.

While serving as CEO Mark Zuckerberg’s right-hand man, Sandberg helped build Facebook into an advertising juggernaut and one of the biggest names in tech. Until recently, Facebook was valued at over $1 trillion, although that valuation was cut nearly in half due to slowing revenue growth and its first-ever loss of users.

She was on the side of Zuckerberg for Facebook’s high-profile acquisitions of Instagram and WhatsApp, which helped it cement its position as the world’s leading social network and turn its advertising business into a $25+ revenue generator. billions of dollars per quarter.

But his tenure at Facebook has not been without controversy. She was in the business for the massive 2018 Cambridge Analytica data breach scandal and the fallout from the efforts of foreign actors who sought to use Facebook’s platform to influence the 2016 presidential election.

As it leaves Meta, CNBC reports that the company faces an antitrust lawsuit from the Federal Trade Commission as well as a potential review from the Securities and Exchange Commission over a whistleblower complaint about its management. of hateful content on its platform.

In a post announcing Sandberg’s departure, Zuckerberg said he had no plans to replace Sandberg’s role in the company’s existing corporate structure, adding he was unsure if that would even be “possible.” .

“He is a superstar who has defined the role of COO in his own way,” he wrote.

Sandberg says she will continue to serve on Meta’s board.

Despite Facebook’s growth since its IPO, past performance of an individual stock does not predict future results. Be sure to research your options carefully before investing.

Also, instead of trying to predict which stocks will go up and which will go down, consider buying low-cost index funds and holding them. This type of diversified fund typically avoids the ups and downs that come with single stock picking.

Register now: Be smarter about your money and your career with our weekly newsletter

Don’t miss: Don’t wait any longer to book your summer trip, says Scott’s Cheap Flights founder