How do foreigners register a marriage in Thailand?
Start with the civil-registration process: prepare the Thai partner's and foreign partner's documents, complete the applicable translation/legalization path for foreign documents, then register the marriage at an authorized civil-registration office. Immigration permission is a separate later question.