In general, the HR department will issue the relieving letter to the employee, but before accepting the resignation of the employee they will take the opinion of the respective HOD of the employee and also the top management.