By the Associated Press:

Acting Homeland Security Secretary Chad Wolf is stepping down from his post, days after criticizing President Donald Trump over the riot at the U.S. Capitol.

Wolf said in a message to staff that he would step down at 11:59 p.m. Monday, even though he had earlier said he planned to remain in his job. He said Pete Gaynor, who ran the Federal Emergency Management Agency, would become the acting homeland security secretary.

The resignation comes a day before Trump is set to visit the U.S.-Mexico border wall. Last week, Wolf asked Trump and all elected officials to “strongly condemn the violence” that took place at the Capitol.