A new aromatic polyamide was synthesized by simple and green method. β-Cyclodextrin as a guest molecule grafted on synthesized polyamide. A novel magnetic polymer complex was successfully synthesized. The composite was exhibited favorable performance toward the bacteria capture.