Machine learning is changing nanomaterials research and applications. The current trends, challenges, and perspectives of machine learning in nanomaterials are discussed in this essay. It is hoped it can offer some guidance and inspiration for future development of nanomaterials discovery and design by using machine learning. The authors declare no conflict of interest.