The literary device used in the sentence “Marie worked all day like an ant getting ready for the winter,” is simile.
A simile is an easy way to compare two things without a lot of explanation, perfect for the spare language of a poem. Examples of simile can be recognized in poems due to they will include comparisons using the words "like" or "as." In this statement the word LIKE, make us notice that simile is being employed.