A ball valve controls the flow of liquids or gases via a pipe by using a spherical-shaped ball with a hole in the middle. The valve works by rotating the ball 90 degrees, which aligns or blocks the hole to allow or prevent flow. Ball valves are noted for their durability, dependability, and ability to maintain a tight seal, making them suitable for use in industries such as oil and gas, water treatment, chemical processing, and manufacturing.