A short distance north of the main church, in the courtyard of an apartment block, is the dishevelled Torre del Palau, all that remains of a royal residence that Jaume II began in the late 13th century.