Castillo de Sant Guim de la Rabassa sits beside a former Jesuit convent in the small hamlet of Sant Guim de la Rabassa, belonging to the municipality of Sant Guim de Freixenet in the Segarra region of Lleida province, Catalonia. The first documented mention of this castle dates to 1078, recorded in the testamentary act of Adelaida, sister of the Viscount of Cardona, in which she bequeathed it to her husband Guillem Mir. The tower was likely constructed during the first half of the 11th century as a crucial defensive element supporting Christian territorial advances over Muslim-controlled regions. Originally a powerful medieval stronghold, the castle has been highly transformed and now exists in ruins, with only fragments of the medieval structure surviving within the convent courtyard. The remaining building, a large rectangular manor house with ground floor, two stories, and an attic, stands in near-ruinous condition.