To punish means to make someone suffer for breaking the rules or laws.
To punish me, my teacher had me stand in the corner.
Example picture