Microsoft's (NASDAQ:MSFT) corporate VP of operating systems, Joe Belfiore, recently announced via a series of tweets that the company would no longer develop new features or hardware for Windows 10 Mobile. That announcement wasn't surprising since Windows Phones account for about 0.1% of all smartphones worldwide, but it represents a disappointing end for the underdog operating system.

Let's take a look back at why Windows Phones failed, the opportunities Microsoft missed, and how it plans to recover from this setback.

A woman and a child take a selfie with a Windows Phone.

Image source: Microsoft.

Why Windows Phone failed

When Apple (NASDAQ:AAPL) launched its first iPhone in 2007, former CEO Steve Ballmer infamously declared that there was "no chance that the iPhone is going to get any significant market share." Ballmer was also so obsessed with countering Alphabet's (NASDAQ:GOOG) (NASDAQ:GOOGL) Google Search that he completely missed the threat Android posed on mobile devices.

When the first iPhones arrived, Microsoft still stood a fighting chance in the mobile market, since Windows Mobile was still a major OS for PDAs and smartphones. However, Microsoft didn't launch its first multi-touch mobile OS, Windows Phone 7, until 2010 -- three years after the first iPhone launched and two years after the first Android devices arrived.

The Lumia 950 XL.

The Lumia 950 XL. Image source: Microsoft.

By then, the smartphone market was firmly split between iOS and Android. As a result, developers didn't see any incentive to produce apps for Windows Phone, which caused consumers to shun the platform for its lack of popular apps. Microsoft desperately paid developers to port popular apps to Windows Phone, but Windows Phone apps still arrived much later than their iOS and Android counterparts -- if they arrived at all.

Smartphone makers, which initially saw Windows Phone as a viable alternative to Android, also abandoned the platform. In a desperate bid to keep its OS relevant, Microsoft acquired Nokia's (NYSE:NOK) handset unit for $7.2 billion in 2014. Unfortunately, integrating that massive hardware division simply weighed down Microsoft's bottom line while generating minimal sales growth.

Nadella's last ditch efforts to save Windows Phone

Satya Nadella succeeded Steve Ballmer that same year and realized that the handset business needed to go. Microsoft took a $7.6 billion writedown on the unit in 2015, incurred about $800 million in restructuring charges, and cut 7,800 jobs -- essentially wiping out the entire value of the original purchase.

A Lumia 950 XL using Windows Continuum.

A Lumia 950 XL using Windows Continuum. Image source: Microsoft.

But Nadella didn't completely give up on hardware. Instead, he declared that Microsoft would limit itself to just six annual device launches -- two phones each in the emerging markets, enterprise, and flagship categories -- to "run a more effective phone portfolio."

With the launch of Windows 10 in 2015, Microsoft declared that certain flagship devices which ran Windows 10 Mobile, its successor to Windows Phone 8, could be converted to full desktop PCs via a Display Dock and its Continuum feature. At the time, this idea seemed like a game-changer for enterprise customers, who could replace their computers, tablets, and phones with single devices.

But two problems sank Continuum -- most users didn't want to replace their iPhones or Android devices with high-end Windows devices, and many enterprise apps were cross-platform ones that already synchronized their data over the cloud. As a result, there wasn't a big market for all-in-one computing devices.

But Microsoft's mobile efforts aren't dead

Microsoft won't dominate mobile operating systems in the same way it did with PCs, but its mobile business is alive and well. Instead of focusing on operating systems and hardware, Microsoft is developing mobile apps for both iOS and Android, allowing it to expand its cloud services ecosystem on the shoulders of those two giants.

It also struck deals with major OEMs like Samsung to pre-install apps like Office, Outlook, and Cortana onto their Android devices, offering users viable alternatives to Google's default services. These are shrewd moves that expand the "mobile-first, cloud-first" strategy which Nadella outlined to Microsoft employees three years ago.