Surgical robots can assist in medical procedures or autonomously perform surgical tasks. This Review explores the design and application of passive, interactive, teleoperated and autonomous surgical robots within the framework of computer-assisted and integrated surgical workflows.