They did it at the behest of the Jews. Jesus was charged with blasphemy, which was not a crime under Roman law. Blasphemy was punishable by death under Jewish law; the Jews asked the Romans to carry out the sentence for them.
Jesus was killed by the Romans,
at the request of the Jews,
on behalf all of mankind.