A report available from the Registre de la Propietat / Land Registry. Such a report tells you about the legal status of the home you want to buy, the year it was built, its previous owners, etc.