Photographers focus at night by setting their lens to its infinity focus. They can also switch to manual focus to take full control over their night portrait photography. If they're setting up a specific night portrait, they can pre-focus during the day and save that same focus for when they return at night to take their shot.