Does the sentence use a simile or a metaphor?
In this desert, the land is as hard as brick.

 - metaphor
 - simile
In this desert, the land is as hard as brick.
The words land and brick are compared using the word as. So, the sentence uses a simile.