This ukiyo-e was painted by Utagawa Hiroshige 歌川広重 (1797-1858). It is part of his “One Hundred Famous Views of Edo” showing the so-called moon pine 上野山内月のまつ. It is named moon pine because people liked to watch the moon through the loop of the tree from different angles. Moon watching was popular in these days and maybe it is still today.
Another ukiyo-e of the same series is showing the pine tree from a different perspective: here you can see it standing in front of the Kiyomizu Hall beside the Shinobazu Pond in Ueno/Tokyo and can be viewed even today. The picture is called Kiyomizu-do and Shinobazu Pond at Ueno.