Gujarat high court on Monday ruled that it is the duty of a local authority to ensure proper sanitation so as to avoid problem of diseases like dengue and swine flu.