Bringing two different things together with an explicit word, such as "like," "as" or "seems." Unlike metaphor, the simile leaves in view that they are two things.
In The Prince
I compare her to a destructive river that, when it rages, floods the plains, tears down trees and buildings, carries earth from one place and sets it down in another; everyone flees before it, everyone yields to its fury, unable to resist it; and, although this is so, it does not follow that men, when the times are calm, cannot take precautions, with repairs and with dikes
Machiavelli says "I compare her to a destructive river," and the comparison is explicit, with two different things placed side by side. The likeness serves to explain how fortune acts and how one can resist her.
Chapter XXV: How Much Fortune Can Do in Human Affairs and How It May Be Resisted, Machiavelli