This is the classic wood block puzzle called the Square Root.
The goal is to move the large square block (the "square root") out the hole on the side.
The square root piece is shorter than the other pieces, so it is the only one that can fit through the hole.
Simple to play, challenging to solve!