Tankards, lidded drinking vessels, have been in use since the Middle Ages. The lid kept insects and dust out of one's beer between drinks.