Why were Mary and Joesph in Bethlehem at the time of Jesus's birth?

Wasn't there a census for Tax purposes?

Thank you, that is what I was looking for.

Bob Pursley is right. This is in Luke: http://bibleresources.bible.com/passagesearchresults.php?passage1=Luke+2&version=45

=)