The hydroponic ecological system having a water purification function of the present invention includes: a water tank; A pump installed in the water tank and formed to circulate water filled in the water tank; A case formed to accommodate a functional material and installed on a downstream side of the pump based on the flow of water circulating by the pump; And a trap formed inside the case to prevent foreign matters from flowing in a direction countercurrent to the flow of water, wherein the trap has a partition formed to divide the interior of the case into an upstream region and a downstream region, , The lower end of the partition extends to a position lower than the water surface inside the case so as to be immersed in the water inside the trap.본 발명의 수질 정화 기능을 갖는 수경 생태 시스템은, 수조; 상기 수조에 설치되며, 상기 수조에 채워지는 물을 순환시키도록 형성되는 펌프; 기능성 물질을 수용하도록 형성되고, 상기 펌프에 의해 순환하는 물의 흐름을 기준으로 상기 펌프의 하류측에 설치되는 케이스; 및 상기 물의 흐름에 역류하는 방향으로 이물질이 유입되는 것을 방지하도록 상기 케이스의 내부에 형성되는 트랩을 포함하고, 상기 트랩은 상기 케이스의 내부를 상류 영역과 하류 영역으로 구획하도록 형성되는 파티션을 구비하며, 상기 파티션의 하단은 상기 트랩 내부의 물에 침지되도록 상기 케이스 내부의 수면보다 낮은 위치까지 연장된다.