How does a non return valve work in conjunction with a spa pump?

How does a non return valve work in conjunction with a spa pump?

The function of a check valve is to push water through a pipe in one direction only, this will also prevent water from entering the pump and causing corrosion.