Freehold means you own the property and (usually) the land beneath it outright, indefinitely, and can sell, renovate, or pass it on freely subject to planning rules. Leasehold means you own the right to occupy for a fixed term, commonly anywhere from a few decades up to 99 years or more, while a freeholder retains the underlying land; the lease loses value as it shortens, and you may pay ground rent and service charges and need consent for alterations.
Which you can access as a non-citizen varies by country. Some markets offer foreigners the same freehold rights as locals; others reserve freehold land for citizens and offer foreigners only leasehold or apartment ownership, and in a few places leasehold in designated zones is the only legal route for outsiders.
Before buying leasehold, scrutinise the remaining term, renewal rights and costs, ground rent escalation, and resale implications, ideally with an independent lawyer. A long lease can be perfectly sound; a short one with vague renewal terms is where buyers get burned.