A flange is a mechanical connection that joins two pieces, such as pipes, valves, or other equipment, to create a piping system or other assembly. It's a protruding rim or collar, often with bolt holes, used to provide strength, support, and attachment. Flanges offer easy access for inspection, maintenance, or modifications.