Khalid told supporters and the press on Wednesday that her victory was the result of a commitment to connecting with voters--even as online trolls were harassing her with comments saying, as the Washington Postreported, "that Muslims had no place in American government and she should go back to where she came from."
"Community organizers beat internet trolls," Khalid told supporters after results came in Tuesday night.
The 23-year-old is also the youngest person to ever be elected to the city council. She told reporters that she was inspired to run for office after seeing the city grow more racially and ethnically diverse while the government remained homogenous.
"Lewiston needs change, it deserves change, and I think we need a lot of perspectives on the city council," Khalid told Reuters. "The local government needs to be reflective of the community."
In addition to ensuring that the city's sizable immigrant population's voices are represented, Khalid aims to secure a $30 million federal housing grant; force code officials to regularly inspect every rental unit to make sure they meet lead and other safety standards; and push for low- or no-interest loans for homeowners.
Khalid's victory earned praise from national politicians including Rep. Ilhan Omar (D-Minn.), the first Somali-American to serve in Congress.
"You might smear us. You might hurl racist attacks at us," Omar tweeted. "But we will always rise up to serve our communities."
Tuesday's result comes amid heightened anti-immigrant sentiment in the U.S. that's been encouraged by President Donald Trump and his policies, including the so-called Muslim ban under which travelers from Somalia and other countries are currently barred from entering the United States.
In recent decades, refugees and immigrants in Lewiston have faced attacks by white supremacists; a former mayor who wrote an open letter to Somali-Americans saying the city was "maxed-out financially, physically, and emotionally" and unable to welcome them; and local Republican politicians.
The progressive group Run for Something, which endorsed Khalid, called her win after facing "overwhelming odds" a potential "inspiration" for others who may consider running for public office.
"No election is too small," tweeted Ashley Allison of the Leadership Conference on Civil and Human Rights. "ALL elections matter and have the potential to shape how we become a more inclusive nation."