Pregunta de entrevista de Netcraft

How does HTTPS work, and how does it prevent adversaries from intercepting traffic?