Foreigners need to obtain a tax identification number (codice fiscale) before purchasing property in Italy. Additionally, they should hire a notary to oversee the purchase process and ensure that all legal requirements are met.