Tàrrega's growth began in the 11th century, when Count Ramon Berenguer I conquered its castle. Located at a strategic crossroad, medieval Tàrrega became an important economic and territorial possession. Indications of the town's vitality at the time include its Jewish community, its fairs and markets, and its large amount of artisans (especially goldsmiths). This period of prosperity was ended by the Black Death, which depopulated the town. Construction of Tàrrega's walls began to monopolize its resources, spurred by the fear of feudal violence. From the 16th to the 19th centuries, Tàrrega began to take on a more rural character, controlled by rich local families. A series of wars the region caused instability in the city, as well as three revolts of Carlists.
Gothic façade of the Cristalleria Mateu, building that it finds to Carme's street, near the Palace of the Marquises of the Floresta, in Tàrrega.
In the second half of 19th century, Tàrrega underwent a revival. Important events in this time included the inauguration of a railway line connecting the town with Manresa and Lleida in 1860, reconstruction of the walls after a flood in 1874, and the granting of the title of city by KingAlfonso XII in 1884. This period also saw the establishment of modern infrastructure in the city.
The city of Tàrrega is arranged around the square of Carme, better known as "the Courtyard" (Catalan: el Pati). The square features a statue of the classical composer Ramon Carnicer, a famous Tàrrega resident. Adjacent to the square is the Convent of Carme, a Renaissance cloister which dates to the 16th century. Notable buildings in the town square include the town council building, built in 1674, as well as the 19th century modernistchamber of commerce building and the 1910 La Caixasavings bank.
Other local landmarks include the museum on the main street, which still preserves some noble rooms[clarification needed] from the 18th and 19th centuries, and the church of Saint Anthony (Catalan: Sant Antoni) in the square of the same name, which dates back to the 14th century. Higher up are the ruins of the castle of CountRamon Berenguer, constructed in 1056. Little remains of the castle.