It goes from San Francisco to Marin County , in the U.S. state of California . As part of both U.S. Route 101 and California State Route 1 , it connects the city of San Francisco on the northern tip of the San Francisco Peninsula to Marin County .