The maker of Chevrolet, Cadillac, and other popular American car brands has agreed to shut down the company’s North American operations by early 2018.

The company said it will lay off 5,000 workers as part of the restructuring, and it plans to begin relocating workers to other regions in the U.S. in 2019.

The announcement comes as GM is seeking to sell off more than 3,000 of its manufacturing operations, which make engines, transmissions, transmissions parts, and some other automotive components.

The automaker also is facing an investigation by the Justice Department over a number of incidents that allegedly occurred during the company and others’ ownership of GM’s defective vehicles.

The department’s investigation was announced in March.

GM is expected to provide more details about the restructuring on Tuesday, according to an industry source familiar with the matter.

The move is part of a broader plan to close up to 1,000 U.K. plants and to reduce its workforce in the United States by 1 million by the end of 2019, according the company.