The magi were priests of the Zoroastrian god, Ahura Mazda, and were widely known as "wise men" for their great learning. In particular, they were experts in astronomy and Astrology. So, if anyone could understand the meaning of a bright new star, they could.
Today, we know that a heavenly body, whether star or comet, could not possibly identify the exact house in a densely populated town like Bethlehem - they are just too far away. Nor is it at all probable that a divinely guided star would first lead the magi to Jerusalem, thus alerting King Herod and creating significant tension in Matthew's nativity story. That they asked the king for directions means that they did not yet realise that the star would lead them to the house in which Jesus was born, but after being sent away by the king they then had faith that it would.
Magi
The three wisemen, or Magi, first saw the Star of Bethlehem in the Bible story. The star led them to the stable where Jesus was born.
The Wise Men or Magi followed the Star of Bethlehem (also called the "Christmas Star") to find Jesus.
Baby Jesus, Mary, Joseph, the three Magi, the star of Bethlehem. Some farm animals are also usually present.
One of the magi...Matthew 2:2
The Gospel of Matthew tells of the magi visiting Jesus.
The Magi are traditionally believed to have come from the East, possibly from regions like Persia or Babylon. They followed a star to Bethlehem to visit the baby Jesus.
The magi traveled to Bethlehem because they wanted to go see Jesus, and bring him gifts, when he was born.
God
In Matthew's Gospel, a star first led the magi westward to Jerusalem so that they could meet King Herod, then turned around and led them south-east to Bethlehem, and finally stood over the very house in which baby Jesus lay. No star can do this, nor does it make sense that the star would put Jesus' life in danger by leading the wise men to Herod, except to create dramatic suspense in the story.
The magi are referred to as the three wise men and they traveled to find Jesus Christ our savior. God guided them by the Northern star.
T.S.Elliot wrote the poem Journey Of The Magi.