Now a municipality in the Urgell comarca of Catalonia, Agramunt originated prior to the 11th century CE.