Billionaire Bill Ackman opened a big position in Amazon stock in the second quarter, and added to his already significant stake in Alphabet.
Amazon is using AI to make its e-commerce business more efficient, and AWS is growing quickly.
Alphabet is showing that AI can help drive its growth.
Billionaire Bill Ackman was busy in the second quarter, investing in two of the world's largest tech companies. His hedge fund, Pershing Square Capital, started a new position in Amazon (NASDAQ: AMZN) and boosted its stake in Alphabet (NASDAQ: GOOGL) (NASDAQ: GOOG).
Ackman is a well-regarded investor known for running a concentrated portfolio: As of June 30, Pershing Square Capital's portfolio had only 10 companies in it. So when it makes a big investment, it's worth it for retail investors to pay attention and consider whether they want to follow.
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »
Pershing established a new position in Amazon in the second quarter, picking up 5.8 million shares. That made it the fund's fifth-largest holding, accounting for 9.3% of its value as of Aug. 14.
Amazon's logistics network has always been the backbone of its e-commerce business, and now the company is employing artificial intelligence (AI) and even more robotics than before to make it even more efficient. The company is applying AI to such tasks as optimizing delivery routes, stocking warehouses more effectively, and directing drivers to hard-to-find drop-off locations in places like large apartment complexes.
Meanwhile, the company now has over 1 million robots working in its fulfillment facilities, and they're being carefully orchestrated by its Deepfleet AI model. Its newer robots can do more than just lift heavy packages. Some can spot damaged goods better than humans (which lowers the number of returns), while some can even repair themselves. All of this saves money and speeds up shipping times.
AI is also strengthening Amazon's advertising unit. Merchants can use its AI tools to create better product listings and ad campaigns. Advertising is a high-margin business that also has been one of the company's fastest growing, with revenue up 23% last quarter.
Altogether, AI is helping drive strong operating leverage in Amazon's e-commerce operations. Last quarter, its North American segment's revenue rose 8% while its operating income climbed 16%. That kind of leverage is exactly what investors want to see.
Amazon's cloud computing division, AWS, meanwhile, remains its most profitable segment and its fastest-growing. The company created the cloud infrastructure market and still holds a nearly 30% share of it. AI is now a major driver in that segment, too. Services like Bedrock and SageMaker allow customers to build and run models directly on AWS, while it recently introduced Strands and Agentcore to help customers build AI agents and safely run them in a secure, server-less environment. Meanwhile, the company's custom-designed AI accelerator chips, Trainium and Inferentia, give it an edge in cost and performance. AWS continues to grow quickly: Revenue climbed 17.5% last quarter to $30.9 billion
Amazon is spending heavily on AI infrastructure, but history shows the company has a knack for winning big when it spends big. Trading at a forward price-to-earnings (P/E) ratio of about 30 based on analysts' consensus 2026 estimates, the stock still looks appealing, particularly given its growth runway.
Amazon wasn't the only tech stock Pershing was buying in the second quarter. It also picked up another 925,000 shares of Alphabet's Class A stock. That increased its total stake in the company (which includes both Class A and Class C shares) by 8.6% to almost 10.8 million shares. Based on the latest public information, that made it the hedge fund's third-largest holding, accounting for 15% of its value as of Aug 14.
Investors have worried that the growing use of AI chatbots will chip away at Alphabet's Google Search business, but so far, that hasn't happened. In fact, last quarter, Google Search's revenue growth accelerated, increasing by 12% year over year to $54.2 billion. Alphabet has also built AI into its products. More than 2 billion people are already using AI Overviews in Google Search, and its new AI Mode is just starting to gain traction. The company is also using AI to advance its tools beyond simple text queries, with Google Lens and Circle to Search standing out as two prime examples. New commerce-focused tools like Shop by AI should also create new monetization opportunities for the company.
One key aspect of Alphabet's competitive moat is distribution. Chrome currently controls two-thirds of the browser market, while its Android operating system runs more than 70% of smartphones. That makes Google the first touchpoint to the internet for billions of users. It also gives Alphabet a huge volume of data and search query histories that it can then funnel into its massive ad network.
Cloud computing is another big growth driver for Alphabet. Google Cloud's revenue jumped by 32% in Q2 while its operating income more than doubled. Customers are drawn to Alphabet's Gemini models, Vertex AI platform, and its custom-designed tensor processing units (TPUs). These TPUs lower costs for AI workloads and give Google Cloud a cost advantage. The business has finally reached scale and is now showing strong operating leverage.
Image source: Getty Images
Alphabet also has longer-term bets. It's deploying its Waymo unit's robotaxis into new cities as the driverless ride-share business shows strong momentum. Meanwhile, with its Willow quantum computing chip, it has made meaningful progress on error-reduction -- one of the core challenges in quantum computing technology. These businesses are a long way from being mature, but their upside potential is enormous.
Despite all of this, Alphabet trades at just 19 times analysts' 2026 earnings estimates. That is cheap for a company that's an established leader in search, cloud, video streaming, mobile, and AI infrastructure. Among the big AI stocks, Alphabet looks the most attractively valued.
In my view, Amazon and Alphabet look like solid buys for long-term investors. While the stocks aren't without risks, given their market positioning and current valuations, I think it makes sense to follow Ackman's lead and own both stocks.
Before you buy stock in Amazon, consider this:
The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Amazon wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.
Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $649,657!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,090,993!*
Now, it’s worth noting Stock Advisor’s total average return is 1,057% — a market-crushing outperformance compared to 185% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.
*Stock Advisor returns as of August 18, 2025
Geoffrey Seiler has positions in Alphabet. The Motley Fool has positions in and recommends Alphabet and Amazon. The Motley Fool has a disclosure policy.