Designing and synthesizing materials with smart hydrophobicity against an external magnetic field for efficient oil/water separation is of great importance due to the increasing problems caused by oil pollution. Here,the nanocomposites were fabricatedbased on graphene and different iron oxides exhibit smart hydrophobicity against an external magnetic fieldand they arein powder form eliminating the requirementfor a substrate employing a facile and echofriendly method. The results prove that autoclaving of graphene leads to its ferromagnetic property; then it is attached to iron oxides by magnetic attraction and a nanocomposite is produced. The magnetic property of the resulting nanocomposite is higher than the magnetic property of its individual components. In addition, following nanocomposite formation, its hydrophobicity and surface area also change. FESEM images were taken from the nanocomposites to study their surface morphology, and EDS-MAP analysis to observe the elemental distribution uniformity of the nanocomposites. Also, to measure the surface area and pore size, BET analysis has been performed on pure materials and graphene-black iron oxide nanocomposite (graphene@black iron oxide). The results show that the specific surface area of black iron oxide increases after being composited with graphene dispersed at 5000rpm. Indeed, graphene forms a composite by binding to iron oxide, and therefore, its specific surface area increases compared to iron oxide and graphene alone. These results show an increase in oil sorption and better separation of oil from water by the prepared nanocomposite. Also, to measure the magnetic properties of pure materials, graphene@black iron oxide, and ferromagnetic graphene at 3000 and 5000rpm, the Vibrating Sample Magnetometeranalysis has been performed. The results have proven that the nanocomposite powder prepared by a simple method obtained from cost-effective and available materials is hydrophobic and becomes more hydrophobic by applying an external magnetic field. Due to the ease with which oil can be readily removed from the nanocomposite by eliminating the external magnetic field, this nanocomposite is an excellent choice for the separation of oil from water.