It's important for the foreigner to have a regular immigration status with a proper visa, which must be valid from the initial requirement by the couple until the day of the ceremony. After all, a tourist visa, for example, which lasts 90 days, may expire before the conclusion of the marriage license process.