Sierpinski's carpet is a fractal. It is obtained as follows: Start with a square S . Divide S into 9 identical squares via vertical and horizontal line segments. Remove the middle square. Now divide each of the remaining squares into 9 squares like before, and remove each middle square. Repeat the process.