The Labor Code in Hungary (and in the EU) aims at protecting the rights of both the employer and the employee. It also includes how and when an employment relationship can be terminated – while immigration law governs what happens to the work permit when that happens.