San Franciscans may not stay out late at night but they definitely know how to keep a dancefloor electric and support the local music scene. Thanks to a history that dates back to the Grateful Dead, Janis Joplin, Carlos Santana, Counting Crows, Journey and other local luminaries, the city embraces its musical legacy—and keeps it going. Golden Gate Park remains a legendary place to see a show on the green, and the city abounds in nightclubs, including LGTBQ+ spaces in the Castro, small live music venues and gigantic multi-level clubs with multiple dance floors spinning out DJ beats. Watch for rotating calendars of visiting artists and bands, pop in your earplugs if the volume’s at 11 and keep the pulse pulsing all night long. Here’s our list of the best nightclubs in San Francisco.