It resides in various natural habitats such as ponds, lakes, rivers, coastal areas, estuaries and mangroves. It is also commonly found near human settlements, particularly in rice fields. In Bangladesh, it can be found in Khagrachari, the Chittagong Hill Tracts and the Sundarbans.