Film is essentially a twentieth century phenomenon, though early attempts to capture light can be traced right back to the sixteenth century.
It's hard to say what the first 'film' was. In 1872, Eadwerd Muybridge photographed a horse (called Sallie Gardner) using 24 static cameras in order to settle a bet about whether all of a horse's hooves leave the ground simultaneously as it gallops.