WASHINGTON—Scott Pruitt, the embattled administrator of the Environmental Protection Agency, resigned Thursday after allegations of ethical lapses and improper spending overshadowed his aggressive campaign to roll back Obama-era environmental rules.

President Donald Trump, who announced Mr. Pruitt’s departure in a tweet, said Mr. Pruitt’s deputy, Andrew Wheeler, would become acting EPA administrator on Monday.

A...