A pin that often occurs in openings is the move Bb5 which, if Black has moved ..Nc6 and ..d6 or ..d5, pins the knight on c6, because moving the knight would expose the king on e8 to check.
A common way to win the queen is to pin her to the king with a rook: for instance with the black queen on e5 and the black king on e8 and no other pieces on the e-file, the move Re1 by White would pin Black's queen.