the monastery of santa maria de ripoll was founded in 888 by count wilfred the hairy (called guifré el pilós in catalan) who used it as a centre to bring about the repopulation of the region after conquering it. wilfred's son, ridulph, was educated there and was later abbot of the monastery, as well as bishop of urgell. the monastery grew rapidly, and was subsequently reconsecrated in 935, 977 and 1032, though the monks are known to have been established there permanently only from 1025 or 1032. the scriptorium and the monastic school quickly gained renown under arnold scholasticus. the monastery had several offshoots which included the abbeys of st. martin-du-canigou (now in france) and that of santa maria de montserrat. it was also known for its collection of manuscripts which numbered 246 by the year 1046, and later included the 13th century "gesta comitum barcinonensium", considered to be the first history of catalonia and written by the monks themselves.