With the conquest of the city of Lleida in 1149, the Templars received various properties in compensation for their assistance during the siege, including Gardeny Hill. The earliest reference to the Gardeny Command dates from 1156, the first commander being listed as Brother Pere de Cartellà, a figure who had been actively involved in the city siege.
http://www.turismedelleida.cat/viure-a-lleida-en/el-castell-de-gardeny