Dubai: Photobombs are hard to avoid, even in space.

European Space Agency astronaut Tim Peake was excited to take a photo of Dubai from a space station on Sunday when a spacecraft came into view.

The British national has been taking photos from his vantage point aboard the International Space Station after he was sent to the orbital outpost in December 2015.

One of his latest quests was to photograph Dubai’s Palm islands. Just when he thought he had found a good angle and was about to take the shot, SpaceX’s Dragon capsule appeared.

“I’ve been waiting to get a pic of The Palms, Dubai and then this happened just prior to capture,” Peake said in his tweet.

The former British Army Air Corps officer did manage later to post on Twitter and Instagram the photo he had planned. It shows The Palm Jebel Ali, The Palm Jumeirah and The World Islands.

“Minus the #Dragon photobomb this time..” posted Peake.

“What an amazing shot,” commented one of Peake’s social media followers.

Peake is reportedly the first British citizen to have flown in space for more than two decades. His six-month journey is part of a spaceflight programme that seeks to explore the solar system and gain knowledge to make people’s lives on earth better.