Describing something by comparing it with something else, is using figurative language. Any language that goes beyond the literal meaning of words in order.