According to a school district review obtained by The Fort Worth Star-Telegram, Ms. Clark, who had taught in the district since 1998, admitted that the Twitter posts were hers.

On May 17, in a series of tweets addressed to “Mr. President,” Ms. Clark said her school district was “loaded” with undocumented students from Mexico, that her high school had been “taken over by them,” and that drug dealers had not been punished. She blamed an assistant principal, whom she referred to as a “Hispanic assistant principal who protects certain students from criminal prosecution.”

“Anything you can do to remove the illegals from Fort Worth would be greatly appreciated,” she said, using a pejorative term for undocumented immigrants.

She then listed two private phone numbers and assured the president that she was using her real name. She later told an investigator that she had received several messages on those numbers calling her racist and that she had filed a police report.

On May 22, she followed up in more tweets directed to Mr. Trump: “I really do need a contact here in Fort Worth who should be actively investigating and removing the illegals that are in public school system.”