It was built by the Bellvís family in the XIV-XV centuries and then passed to Francesc Aguiló de Romeu. Later, in 1449 passed to the Borgia family, concretely to Joan of Borgia, son of the Pope Alexander VI, what supposed its annexation to the duchy of Gandía until the end of 1669. The Borgias reformed it giving a more residential look. The remains of the palace and part of the facade have recently been restored together with the courtyard part where are the cisterns, dungeons and old stables. Near the palace is the mosque. The mosque consists of a covered part which was a prayer room and a patio, with two access doors. The covered hall is rectangular with two naves, with six turns. The "alquibla" facing south is marked by the Mihrab, in the form of a chapel. The interior decoration has been made with glazed brick. The building can not be visited waiting for its restoration.