Early queen moves and queen get trapped.
See what can happen if you weaken your king side.
Won the game even when I blundered in opening. On move 11 I should have castled instead of playing d4. I found two game in chessbase database (search here) in which black played a6 on move 9.
My opponent played waiting move 4...h6 which is rarely played (See 365chess.com database here).
Beauty of Ruy lopez
Another f pawn move
This is why one should refrain from moving f pawn.