Loray () is a commune in the Doubs department in the Bourgogne-Franche-Comté region in eastern France.
Loray lies south of Pierrefontaine, near Valdahon and Orchamps-Vennes at approximately east of Besançon on the road between Morteau and Besançon. Its highest point is the Roche-Barchey at 1000 m.
Its inhabitants are called Loraitins (or Cabas) in French.
The neighbouring communes are La Sommette, Flangebouche, Orchamps-Vennes, Plaimbois-Vennes, and Vennes.