There is evidence of human occupation of the area since prehistoric times, and a tumulus is still visible near to the race course just outside the town.
The town first developed on the crossroads of two old gallo-roman routes, Cahors-Limoges and Rodez-Périgueux.
In the middle ages a chateau was built by the barons of Castelnau on the highest point (now the square named after François Mitterand). The barony of Gramat extended to Carennac, Loubressac, Autoire, Miers, Mayrinhac Lentour and Lavergne. The town developed as a thriving commercial centre for trade and pilgrimage to nearby Rocamadour.
The Hundred Years War brought destruction to the area. In 1356, after the battle of Poitiers, companies of gascons associated with the English crown were on the rampage in Quercy. They arrived in Gramat, destroyed the town outside of the castle walls and occupied the town for three days. By the end of the war only five households were left in Gramat. The area was repopulated thanks to immigrants from nearby Limousin, Rouergue and Auvergne.
The arrival of the railway in 1863 brought new prosperity to Gramat. Many big fairs a year were held, with sheep and cattle as well as other goods bought and sold in the various squares of the town.
Restaurants and shops: Supermarkets on the outskirts : Leclerc, Lidl. Many shops in the centre including Carrefour and Huit à Huit in the centre, butchers, bakers, chemists, post office, gift shops, shoes. Many restaurants and hotels in the centre.
Markets: A market is held every Tuesday morning in the market square in front of the church : fruit and vegetables, cheese, farm produce, chickens, fish... A fair is held in the main square every 2nd and 4th Thursday of the month : clothes, jewellery, pots and pans, shoes, sewing materials...
Things to see: Le parc animalier de Gramat (open all year round - a pleasant walk on the causse of Gramat, with European animals), Centre National d'Instruction Cynophile de la Gendarmerie : National police dog training centre : impressive demonstrations every Thursday, from the 3rd Thursday in June to the second Thursday in September, beween 3 and 5pm only.