As the Trump era wore on, Google continued to brace itself for all manner of external assaults, and not just from the right. The 2016 election and its aftermath set off a backlash against Silicon Valley that seemed to come from all sides. Lawmakers and the media were waking up to the extractive nature of Big Tech’s free services. And Google—the company that had casually introduced the internet to consumer surveillance, orderer of the world’s information, owner of eight products with more than a billion users each—knew that it would be an inevitable target.

But in many respects, Google’s most vexing threats during that period came from inside the company itself. Over the next two and a half years, the company would find itself in the same position over and over again: a nearly $800 billion planetary force seemingly powerless against groups of employees—on the left and the right alike—who could hold the company hostage to its own public image.

In a larger sense, Google found itself and its culture deeply maladapted to a new set of political, social, and business imperatives. To invent products like Gmail, Earth, and Translate, you need coddled geniuses free to let their minds run wild. But to lock down lucrative government contracts or expand into coveted foreign markets, as Google increasingly needed to do, you need to be able to issue orders and give clients what they want.

For this article, WIRED spoke with 47 current and former Google employees. Most of them requested anonymity. Together, they described a period of growing distrust and disillusionment inside Google that echoed the fury roaring outside the company’s walls. And in all that time, Google could never quite anticipate the right incoming collision.