Microsoft overtook Amazon as second most valuable U.S. company on Friday after investors punished Jeff Bezos' e-commerce behemoth for a disappointing quarterly earnings report, wiping $65 billion off the online retailer’s market capitalization.

Apple still tops the list at over $1 trillion after crossing that threshold in September. Microsoft’s market capitalization was Wall Street’s highest in late 1998 through early 2000 before the dot-com bubble burst.

Amazon’s shares dropped 7 percent, the most in nearly three years after its holiday season sales outlook missed targets, fanning concerns that Wall Street’s tech darlings are finally starting to face stronger competition.

Microsoft fell a more modest 2 percent in a broad technology sell-off that was also driven by a weaker-than-expected report from Google-parent Alphabet.

Shares of Microsoft remain up nearly 4 percent from Wednesday, when the four-decade-old software company beat quarterly profit expectations, driven by its cloud computing business that competes with Amazon’s.

Its stock market value on Friday stood at $823 billion, on track to close above Amazon’s for the first time since April, when it gave up its spot as second largest company by market capitalization.

Amazon was worth $805 billion on Friday.

Amazon’s tumble left it up around 40 percent year to date, while Microsoft has gained about 25 percent in 2018. On Wednesday, Amazon’s stock traded at the equivalent of 70 times expected earnings, its lowest level since 2011.