Neuromodulation technologies have been essential in investigating the roles of neurons and their connectivity and brain functions. While magnetic neuromodulation holds unique capabilities of wireless and remote deep brain stimulations which are lacking for optogenetics or electrode-based tools, some of the earlier magnetic approaches have faced controversies due to the limited understanding of the working principles and poorly designed magnetic operating system. Furthermore, despite its utmost importance in neuroscience research, cell-type specific magnetic neuromodulation has not been reported. Here, we develop a nanomaterials-based magnetogenetic toolbox for the selective activation of specific neural populations with robust and temporally regulated neuronal responses in vitro and in vivo. In conjunction with Cre-loxP technology, the torque force generated by the nanomagnetic actuators activate Piezo1 ion channels, which are selectively expressed in the targeted neuronal populations. We demonstrate the power of this cell-type-targeting magnetic approach for remote and spatiotemporally precise control of deep-brain neural activity in multiple behavior models, including bidirectional feeding control, long-term neuromodulation for weight control in obese mice, and wireless modulation of social behaviors in multiple mice in the same physical space. Our study proves the potential of cell-type specific magnetogenetics toward effective and reliable research tools of life sciences, especially in wireless, long-term, and freely behaving animal studies of various scales from mice to primates with the advantage of magnetism.