sentences:  The first known building in the area was the Moorish castle of Fadrell, near the Alqueries de La Plana.The town proper was officially founded in 1251, after the conquest of the Moorish Kingdom of Valencia by King James I of Aragon in 1233.James granted royal permission to move the town from the mountain to the plain on 8 September 1251, and tradition claims that the move was completed by the third Sunday of Lent, 1252.