States of matter

What is the immediate molecular cause of pressure exerted by a gas on its container?