A bioproduction method that ties compound synthesis to bacterial survival could be used to mass-produce natural products.