A strong background in science, technology, engineering and mathematics (STEM) is crucial not only for students who go on to become scientists. The jobs of the future, in a variety of sectors, will increasingly require skills in STEM subjects. This Outlook looks at the ways in which science education is being modernized and updated to help prepare young people for life in the twenty-first century. Read more in this Nature Outlook I edited.