A polygon is any 2D shape with straight sides. Many polygons have special names. For example, triangles, squares, and rectangles are types of polygon. Regular polygons have sides that are all the same length. Irregular polygons have sides that are different lengths.