Is provident fund (PF) mandatory?

Yes, under the Employees' Provident Funds and Miscellaneous Provisions Act, 1952, it is mandatory for employers and employees to contribute 12% of the employee's salary to the provident fund.