ocasio-cortez won the democratic party's primary election on june 26, 2018, when she beat democratic caucus chair joe crowley. her victory was a surprise and many saw it as an upset victory. in november 2018, she would go on to win the general election. she beat republican nominee anthony pappas.