As of Sunday, after an early evening meeting with Donald Trump at the White House, Kirstjen Nielsen is officially out as secretary for the Department of Homeland Security. She had held the position since December 2017, making her one of the longest-lasting members of the administration without some kind of family tie to the president.

Homeland Security is a massive and broad department, covering cyber security, election security, and disaster relief. Nielsen reportedly had a rocky relationship with Trump, largely because, as The New York Times reports, she pushed back on some of the president's more obviously illegal or ineffective demands, like closing all ports of entry between the U.S. and Mexico or blocking all migrants from seeking asylum. Two officials told The Washington Post that Nielsen "had no intention of quitting when she went to the meeting Sunday with the president and that she was forced to step down."

Nielsen still enacted plenty of Trump's anti-immigrant policies. Trump and his administration often claim that it is dedicated to fighting illegal immigration only, but they've taken many steps targeting documented immigrants, too, like when DHS moved to end Temporary Protected Status for thousands of people from Central America, the Caribbean, and Africa who were living in the U.S. legally, essentially turning them into undocumented immigrants regardless of whether or not they've broken any laws. And Nielsen will no doubt most be remembered for her role overseeing the administration's policy of forcing apart families crossing the U.S.-Mexico border and keeping children, some as young as three months old, in cages.

As recently as March, she argued before Congress that those aren't "cages" but rather "detention spaces" made of chain-link fencing. DHS calculated that nearly 3,000 children were separated from their families before a court ordered them to be reunited, but news since then suggests that thousands more kids were actually swept up than DHS acknowledged—the department just separated them before Trump's official order. At least 250 parents have been separated from their children since that June 2018 court order, and that number doesn't account for children taken from family members who are not their parents. In the past two years, 22 people have died in DHS custody, including two children. And advocates have reported that toddlers have bruises from sleeping on rocks and concrete in fenced-in spaces under a border bridge.

Of course, none of that cost Nielsen her job. What seems to have ultimately done her in was her failure to cut down a spike in border crossings, which reached 100,000 last month. And for now, part of DHS's solution has been to keep migrants in massive, open-air camps in El Paso, Texas. Nielsen's leaving isn't likely to make the situation better. She'll probably go on to have some lucrative job in the private sector, and Trump no doubt will replace her with someone who is more in line with his rabid anti-immigrant attitude—and who will probably have even fewer moral hang-ups about it.