The process of ending an employee's contract, either voluntarily (resignation) or involuntarily (layoff or firing), due to various reasons such as performance or business needs.