Originally published in Nature, May 24, 2022. The patent system assumes that inventors are human. Inventions devised by machines require their own intellectual property law and an international treaty. In 2020, a machine-learning algorithm helped researchers to develop a potent antibiotic that works against many pathogens (see Nature https://doi.org/ggm2p4; 2020). Artificial intelligence (AI) is also being used