ESOPs start with a company creating a trust fund to hold the company’s stock. Shares are allocated to employee accounts based on factors like salary level and tenure. Employees gradually gain full rights to the shares through vesting and can sell them back to the company upon leaving.