Article 27 of the Mexican constitution prohibits foreigners from owning land within 50 km of a coastline and 100 km of the border.
The

Buying property in Mexico has never been more secure and your investment will grow at a very rapid rate.
Although buying property in Baja is very safe and secure, some things that people should consider and ask when deciding to purchase property in Baja are the following,
First, Does the parcel that contains the lot you are considering to buy have a title insurance policy issued? In Baja, you must purchase the lot prior to applying for title insurance, so if the entire parcel has been insured, you will be able to get an insurance policy without much trouble
Secondly, has the parcel and lots been permitted through Semarnat (The Mexican environmental agency). Recently, Profepa (the enforcement side of Semarnat) has been issuing citations carrying heavy fines and holding up building until the legal permits have been obtained. Parcels that have been cited are having to go through environmental studies. The backlog has taken a year or more to process.
Thirdly, if a homeowners association is in effect, has it been officially registered with the public registry so the CC&R’s can be enforced?