There are references to this building since the early seventeenth century when it was used more as a charitable institution than as a health resort.
The word hospital comes from the Latin "hospitalem", which means hostel. It was therefore a place to welcome, not only infer, but also people without resources, orphans and even pilgrims.
This hospital exercised as such thanks to Agueda Nicolau, neighbor of Oropesa del Mar who donated his inheritance for the construction of it in 1794, and other charitable aid, until in the nineteenth century changed its function to house the prison of the Villa.