To purchase property in Costa Rica as a foreigner, you must have a residence permit or temporary resident visa. It is also recommended that you work with a local lawyer to ensure that all legal requirements are met.