The recall, announced Saturday, includes the luxury-vehicle maker's C-Class, E-Class, CLK-Class and the CLS-Class made between 2001 and 2011.
In each of the four vehicles, the bonding material on the optional sunroofs can deteriorate, resulting in the sunroof detaching and posing a danger to drivers, according to the National Highway Traffic Safety Administration.
Mercedes will contact owners of cars affected by the recall on or after Feb. 14. The company is offering to inspect and replace the sunroofs if necessary, free of charge.
The Associated Press contributed this report.