The steady three-dimensional rotating flow past a stretching/shrinking surface in water and kerosene-based nanofluids containing single and multi-walled carbon nanotubes (CNTs) is investigated. The governing equations are converted to similarity equations, and then numerically solved using MATLAB software. The impacts of rotational, suction, and nanoparticle volume fraction on the flow and the thermal fields, as well as velocity and temperature gradients at the surface, are represented graphically and are analyzed. Further, the friction factor and the heat transfer rate for different parameters are presented in tables. It is found that the heat transfer rate increases with increasing nanoparticle volume fraction as well as suction parameter in water and kerosene-based nanofluids of single and multi-walled CNTs. However, the increment in the rotating flow parameter decreases the rate of heat transfer. Multi-walled carbon nanotubes and kerosene-based nanofluid contribute to heat transfer rates better than single-walled carbon nanotubes and water-based nanofluid, respectively. A unique solution exists for the stretching surface, while two solutions are obtained for the shrinking surface. Further analysis of their stabilities shows that only one of them is stable over time.