In many regions of Spain it is necessary for there to be a technical inspection of the property when the ownership of the property changes. This is carried out by the local town hall and is to check that the property is safe to be connected to the mains utility services such as gas, electrical and water supplies. The local town hall will determine the specific regulations but often if the property was inspected more than 5 years ago it will be required. The cost will also vary but you can expect to pay from €250 to €350.