This is a 1.5 inch Slide Gate Valve (S x Spg). It is commonly used with 1.5 inch rigid pipe and 1.5 inch flexible rigid pipe.
This part is used to isolate a section of pipe work. Usually for easy access maintenance purposes. As this is a male / female fitting it means you can fit it straight into a pump union, without the need of additional pipe work.