sentences:  That Thailand's habitats are contiguous with those of neighbouring countries explains the low number of endemic species.In 1991, it was estimated that 159 resident and 23 migratory species were endangered or vulnerable due to forest clearance, illegal logging, hunting and habitat degradation, especially in the lowlands.The species most affected are large water birds whose wetland habitat has been largely lost to agriculture, and forest species, as deforestation for agriculture and logging have removed and degraded portions of the woodlands.