Rocamadour is a commune in the Lot department in Southwestern France. It lies in the former province of Quercy.