Today, electromagnetic pollution is one of the most important factors that can endanger human health and have a destructive effect on electrical devices. The use of conductive composite layers including magnetic nanoparticles can play an important role in absorbing electromagnetic waves and eliminate electromagnetic pollution. In this research Ba0.5Sr0.5Fe12O19 and Ni0.5Mn0.5Fe2O4 nanoparticles were synthesized via the microwave radiation method and using lemon juice as a surfactant. Then different percentages of a0.5Sr0.5Fe12O19 and Ni0.5Mn0.5Fe2O4 nanoparticles are electrodeposited as a nanocomposite in the form of a thin layer. The structure, crystalline size, and strain of nanoparticles were investigated via X-ray diffraction. The morphology and shape of nanoparticles were studied by field emission scanning electron microscope. The kinetic roughening of nanocomposite thin films was studied using atomic force microscope. Magnetic hysteresis loop of nanoparticles and nanocomposite thin films curved via vibration sample magnetometer. The reflection loss of the samples were measured via vector network analyses. The purpose of this research is to find the appropriate percentage of the composition of Ba0.5Sr0.5Fe12O19 and Ni0.5Mn0.5Fe2O4 nanoparticles that has the largest range of absorption of electromagnetic waves.