How to deal with the pinned knight on f3 in the Ruy Lopez (as white)? I find myself in positions like this a lot when playing the Ruy Lopez:

[fen ""]

1. e4 e5 
2. Nf3 Nc6
3. Bb5 d6
4. O-O Bg4


If I try to kick the bishop out with  5. h3, they back up to h5 and I'm in the same spot I was, essentially. What tends to end up happening is after my queen comes out, they take on f3 and I end up with doubled pawns, which makes me pretty uncomfortable on my King's side. 

So what's the best way to deal with this pin? Or are doubled pawns a typical consequence of playing this line? Maybe I could have done something earlier? According to the chess.com database, this isn't a super common line anyway.
Black cannot exploit the pin with ...Nd4: not at once because the Nc6 itself is pinned, not later because c2-c3 is on your plan anyway. This means that you should not panic and can concentrate on developing before taking measures about the Bg4.

You should not be afraid of a ...Qf6 either. After the later sequence ...Bxf3, Qxf3, Qxf3, gxf3, your king is secure thanks to the queen exchange, and the bishop pair is much more important than the temporary doubled pawn that you would get rid of by pushing f3-f4, gaining influence in the center in the process.

If you follow a Ruy Lopez plan anyway: c3, d3, Nbd2, Re1, Nf1 you have various ways of breaking the pin.


First, you can move your queen when the second knight is on d2. Plus: it is faster. Minus: your queen don't have so many great square to go to, since on c2 it is a bit passive and that square is better left for a possible retreat of the Bb5.
Second, you continue, after Nf1, with h3 (check whether the opponent can reply ...h5 when his rook is still on h8) and after ...Bh5, Ng3. It is part of your plan anyway (reinforce e4 so you can push d3-d4, possible knight-hops to f5 or h5) and it embarass Black's light-squared bishop. After an eventual ...Bxf3 Qxf3, you gain the bishop pair with excellent chances to build an initiative on the light squares.