Wendelstein 7-X (W7-X) is an optimized stellarator with a 3-dimensional five-fold modular geometry. The plasma-wall-interaction (PWI) investigations in the complex 3D geometry of W7-X were carried out by in situ spectroscopic observations, exhaust gas analysis and post-mortem measurements on a large number of plasma-facing components extracted after campaigns. The investigations showed that the divertor strike line areas on the divertor targets appeared to be the major source of carbon impurities. After multistep erosion and deposition events, carbon was found to be deposited largely at the first wall components, with thick deposits of >1 μm on some baffle tiles, moderate deposits on toroidal closure tiles and thin deposits at the heat shield tiles and the outer wall panels. Some amount of the eroded carbon was pumped out via the vacuum pumps as volatile hydrocarbons and carbon oxides (CO, CO2) formed due to the chemical processes. Boron was introduced by three boronizations and one boron powder injection experiment. Thin boron-dominated layers were found on the inner heat shield and the outer wall panels, some boron was also found at the test divertor unit and in redeposited layers together with carbon. Local erosion/deposition and global migration processes were studied using field-line transport simulations, analytical estimations, 3D-WallDYN and ERO2.0 modeling in standard magnetic field configuration.