Force employees to take off work to use up their leaves, is it legal?

Force employees to take off work to use up their leaves, is it legal?
Many employers require employees to take off work to use up their leaves in order not to pay a wage amount for the untaken leave days. Force employees to take off work to use up their leaves, is it legal?