The purpose of employment legislation is to regulate the employment relationship between employer and employee. It generally also provides a framework to resolve any disputes between employers and employees that may arise.