Bergerac (Occitan: Brageirac) is a commune and a sub-prefecture of the Dordogne department in southwestern France.