President Donald Trump said Friday that Kevin McAleenan was stepping down as interim Secretary of Homeland Security.

Trump said McAleenan wanted to spend more time with his family and go to the private sector.

"Congratulations Kevin, for a job well done!" Tweeted Trump.

In a statement, McAleenan thanked the president "For the opportunity to serve alongside the men and women of the Department of Homeland Security," adding that the department has "made considerable progress in mitigating the border security and humanitarian crisis we faced this year ".

The departure of McAleenan creates another vacant position at the highest level of Trump's cabinet in the department responsible not only for the enforcement of immigration laws, but also for the security of states in holding elections.

McAleenan had been in this position since April alone and was the fourth person to lead the department in two years. He was appointed acting secretary to replace Kirstjen Nielsen after his departure. Nielsen took over from John Kelly in the post when she was appointed Trump's chief of staff at the White House. (Elaine Duke was acting secretary for six months between Kelly and Nielsen.)

Trump announced that he would soon announce a new interim secretary. The Acting Alternate is David Pekoske, Transportation Security Administration Manager.

Prior to DHS, McAleenan held various positions in the Customs and Border Protection Department (CBP). He was confirmed as CBP Commissioner in March 2018.

He was seen as a man who could handle the border crisis effectively but, like many former administration officials, Trump got angry.

His duties were marked by internal quarrels and internal quarrels within the department, which competed for the most prestigious positions, all of them playing on a background of indignation and horror as children were reportedly detained. sordid conditions and images of those who died while trying to make the journey.

Just last week, he told the Washington Post what the newspaper described as "uneasiness" with a law enforcement agency used for partisan political purposes.

"What I do not control is the tone, the message, the public face and the department's approach in an increasingly polarized era," he told the Washington Post. "It's uncomfortable, as a manager, responsible."

This 240,000-strong department is responsible for electoral security and cybersecurity, disaster response and even secret services. But for Trump, the Department of Homeland Security means one thing: immigration.

The question of the president's signature makes the department a central concern, and it is always difficult to find a balance between a White House eager to change major changes and the reality on the ground.