Historians think that Perpignan was founded around the beginning of the 10th century ( first mentioned in a document as villa Perpiniarum in 927 ) . Though settlement in the area goes back to Roman times , the medieval town of Perpignan seems to have been founded around the beginning of the 10th century ( first mentioned in a document as villa Perpiniarum in 927 ) .