This is a time exposure straight into full night. The photo was taken from a little hillock beside the Panaromic Highway facing the hills of Marin Headlands and looking back towards San Francisco. The sliver moon had just set, and it was really pretty dark. I had the camera with a fully open lens, and exposed for five minutes.
The glow in the sky doesn’t come from the setting sun (the sun would have to set in the southeast!). This is ambient light from San Francisco.