If the marriage ends before the citizenship process is complete, it could affect your application, depending on the country. Some countries may revoke eligibility or restart the residency requirement, while others allow the process to continue if you’ve already met certain criteria. Always review the specific rules in the country where you’re applying.