The government defended the retention of Section 497 of the Indian Penal Code (IPC) for preserving the "sanctity of marriage".