An angel told Joseph in a dream to take Mary as his wife because the baby was conceived by the Holy Spirit.