The two rectangles on a soccer field are the penalty box and the goal box. These boxes are used to determine where certain fouls took place and where the goalkeeper is allowed to handle the ball.