The town is first recorded as a place name in 948 .
The town is first is also recorded as having had part of its territory ceded to the Monastery of Ripoll in 1003 .
The town is first recorded as a place name in 948 , and is also recorded as having had part of its territory ceded to the Monastery of Ripoll in 1003 .