On Tuesday night in New York’s congressional primary, Alexandria Ocasio-Cortez beat out incumbent Rep. Joseph Crowley, a top-ranking Democrat. Ocasio-Cortez, a 28-year-old activist, will now face Republican Anthony Pappas in a November race for the 14th Congressional District in New York City.

By winning the primary, Ocasio-Cortez effectively ended Crowley’s 20-year congressional career. Crowley became just the third sitting member of Congress, and the first Democratic incumbent, to lose in a primary this year. The House Democratic Caucus chairman was widely seen as a potential successor to Minority Leader Nancy Pelosi (D-Calif.).

Ocasio-Cortez, a Latina who grew up in the Bronx, ran on a sharply liberal agenda, including abolishing the federal Immigration and Customs Enforcement agency and making Medicare a universal program.

“Every person out here this evening changed America tonight,” Ocasio-Cortez said in her victory speech, urging voters across the country to elect a “caucus” of like-minded candidates. “This is not an end, this is the beginning.”

In a statement, Crowley congratulated Ocasio-Cortez and pledged to support her. “I am proud of the race we ran and, more importantly, proud of all of the work we’ve done to advance this community,” he said.

Ocasio-Cortez’s rise

Ocasio-Cortez filed to challenge Crowley in May. Around this time, she had been working behind a bar, helping to launch launch Flats Fix, a tacos and craft cocktail spot in Manhattan.

She’d also been active in her community as an activist for years.

She had rallied at Standing Rock, the site of Native American protests against a natural gas pipeline that would cut through their North Dakota land. She’d worked with Bronx Progressives and the Democratic Socialists of America to lobby Crowley’s office; she was cheered when the congressman endorsed the House’s “Medicare for All” legislation.

She’d even organized for Sen. Bernie Sanders (I-Vt.) in New York ahead of the 2016 presidential election.

So, encouraged by fellow activists, she decided to go up against Crowley. Why? To Ocasio-Cortez, he was a “corporate Democrat,” who received more money from corporate PACs than from local donors — and from the developers who were driving up housing costs. He had voted to create the Department of Homeland Security. He’d voted for the war in Iraq. He’d voted for PROMESA, the bill that created a hated bankruptcy board to handle Puerto Rico’s debt.

“My grandfather died in the storm,” Ocasio-Cortez tweeted last month. “Your acts shut schools and starved public services when we needed them most.”

After organizing a grassroots campaign, Ocasio-Cortez looks to be on her way to Congress.

She is running in a district that gave 78 percent of its vote to Hillary Clinton and that Republicans aren’t seriously contesting. There, she could be the youngest woman elected by either political party. Before this year, Crowley had never come close to losing in New York’s 14th Congressional District. Republican reaction to Ocasio-Cortez’s win was mostly about Crowley’s defeat and how his party’s establishment had lost to a self-described socialist.

Alexandria Ocasio-Cortez celebrartes with supporters at a victory party in the Bronx. (Scott Heins/Getty)
Alexandria Ocasio-Cortez celebrartes with supporters at a victory party in the Bronx. (Scott Heins/Getty)

That was what Ocasio-Cortez had set out to do — replace the party establishment, and the Queens Democratic Party machine controlled by Crowley, with a new establishment and a new electorate. Justice Democrats and Brand New Congress, among the progressive groups that had urged her to run, ended up staffing her campaign. She wasn’t inclined to back House Democratic leader Nancy Pelosi for speaker, name-checking one of the House’s most left-wing members as a better choice.

“I’d like to see new leadership, but I don’t even know what our options are,” she said. “I mean, is Barbara Lee running? Call me when she does!”

The candidate’s position on issues

Ocasio-Cortez’s politics are substantially to the left of the Democratic Party.

In her campaign videos and posters, designed by friends from New York’s socialist circles, she came out for the abolition of ICE, universal Medicare, a federal jobs guarantee and free college tuition.

The posters, which she said were designed to look “revolutionary,” were bilingual and centered her face; her viral campaign video, created by a socialist team called Means of Production, began with her saying that “women like me aren’t supposed to run for office” over an image of her getting ready for the day in a busy apartment building.

“The only time we create any kind of substantive change is when we reach out to a disaffected electorate and inspire and motivate them to vote,” Ocasio-Cortez told the left-wing magazine In These Times, in one of many interviews she gave as her campaign seemed to surge in the final weeks. “That is how Obama won and got reelected, and that’s how Bernie Sanders did so well.”

Her campaign style

In interviews last week, as Ocasio-Cortez canvassed voters in Queens, she said her campaign began with grass-roots organizers and took off once national left-wing media noticed what she was doing. An early profile in the Intercept, she said, was “a game-changer,” leading to more interviews and profiles that led with the audacity of her challenge, then got to her policies. By the final week of the campaign, when she briefly left the state to see conditions at immigrant detention centers in Texas, she was updating Vogue on how the campaign was going.

Her campaign began with phone banks that targeted thousands of unaffiliated voters, informing them that they needed to register as Democrats six months before the election if they wanted to vote in the primary. It purchased the Democratic voter list, but Ocasio-Cortez’s team found the built-in technology to be too clumsy, so they built their own app and handed it to volunteers.

Crowley did not take the challenge lightly, spending $1.5 million, more than five times as much as his opponent. In his own campaign messaging, Crowley called himself “Joe from Queens” and emphasized how his clout in Washington made him an ideal opponent to Donald Trump.

In his one televised debate with Ocasio-Cortez, Crowley briefly went on the offensive, telling viewers that his opponent had once said that New York’s gun laws didn’t need to be applied in other states. The attack was true — Ocasio-Cortez had said it in a Reddit forum — but she laughed it off, called it “trolling on the Internet,” and he moved on.

Ocasio-Cortez simply outplayed Crowley, whom many congressional reporters saw as a potential speaker of the House, across the media. One of her greatest coups came a week before the primary, when a Bronx newspaper held a candidate forum and Crowley could not attend. Ocasio-Cortez showed up early, shaking hands even though the crowd was thin.

Alexandria Ocasio-Cortez celebrartes with supporters at a victory party in the Bronx. (Scott Heins/Getty Images)
Alexandria Ocasio-Cortez celebrartes with supporters at a victory party in the Bronx. (Scott Heins/Getty Images)

Crowley had sent Annabel Palma, a former city councilwoman, to take his place, even though she occasionally confessed not to know Crowley’s positions on issues in front of Congress.

The first-time candidate was clearly getting the best of the longtime city councilwoman. Ocasio-Cortez’s focus stayed on Crowley. Early in the debate, before she was told not to stand during answers, she paced the stage and said that her campaign was of, by and for the Bronx.

“We have touched the hearts and minds of all families here. We are fighting for an unapologetic movement for economic, social, and racial justice in the United States,” Ocasio-Cortez said.

She turned and faced Palma. “With all due respect,” she said, “I’m the only one running for Congress in this room.”

Why are young people turning their backs on Elizabeth Warren?

Eighteen- to 29-year-olds in Iowa are flocking to Bernie Sanders

In one year, a woman could be elected president. Here’s what will happen first.

All the need-to-know events ahead of the 2020 election, plus how the five women candidates are polling

Democratic presidential candidates’ new target? Elizabeth Warren.

Joe Biden has been leading the new critique of Warren by raising questions about her ‘candor’