Trump said on Twitter Thursday afternoon that she is departing at the end of the month.
In a tweet, Huckabee Sanders said she was “blessed and forever grateful” to Trump for the chance to work in his administration.
“I love the president and my job,” she said. “The most important job I’ll ever have is being a mom to my kids and it’s time for us to go home.”
Following the announcement, Trump praised Huckabee Sanders and pointed out that she has been working with him since before he was elected in 2016.
WATCH: Sarah Sanders to leave White House as watchdog agency calls for Kellyanne Conway to be fired
“We’ve been through a lot together. She’s tough, but she’s good.”
He said he’s trying to encourage Huckabee Sanders to run for governor of Arkansas, where she and her family are returning.
Huckabee Sanders was appointed White House press secretary after Sean Spicer resigned in July 2017. She previously served as Spicer’s deputy.
Under her tenure, regular White House press briefings ceased. Her credibility has also come under fire.
Special counsel Robert Mueller’s Russia report revealed that Sander admitted to investigators that she had made an unfounded claim about “countless” FBI agents reaching out to express support for Trump’s decision to fire FBI Director James Comey in May 2017.
With files from the Associated Press