The Mars Curiosity rover is no stranger to selfies. This is a composite of 57 images taken from the camera at the end of the rover's arm called the Mars Hand Lens Imager (MAHLI). It's on top of a sand dune called 'Namib Dune', taking samples of sand to study the composition of sand dunes on Mars and the way they behave in Mars' atmosphere.
It even took a close up picture of the sand it's been scooping up.