Purchasing a condo in Thailand is the easiest way to own real estate in the kingdom. A foreigner can own a condo in his own name (freehold), provided that at least 51% of the units in the building are owned by Thai nationals. If a given building has not reached this quota, foreigners must get a 30 year lease.
One thing to check on when considering buying a particular unit is the maintenance fee. These fees cover staff salaries, upkeep of the common property areas such as the pool and so on. Some buildings have modest fees, while others require more substantional ones; it depends on the age and size of the particular building. It's important to make sure that these fees have been paid by the current owner of a unit you are thinking of buying. Otherwise, you will be held responsible for them.