Back rank mates are often guarded against simply by virtue of a friendly rook or queen protecting the back rank. However, it may be possible for the attacking side to deflect one of these pieces away from defensive duties. In the example shown to the left, for example, White to move can play 1.Qxc6 when black cannot reply 1...Rxc6 because of 2.Rd8+ Rxd8 3.Rxd8# with a back rank mate. Black therefore loses his bishop for no compensation-and Black has no good continuation because of the threat to chew up more material with Qxa8 or Qxc8. For example, 1. ... Qa6 2.Qxa8! Rxa8 3.Rd8+ Rxd8 4.Rxd8#. Examples such as this, where a rook cannot leave the back rank because of mate threats, are relatively common in chess.
Back rank threats can be guarded against more permanently by moving one of the pawns in front of the king to give the king a flight square (such a move is sometimes said to "give the king some luft"). If it were Black to play in the example to the left, he could counter White's threat with (among other moves) 1...g6, giving the king a square on g7 to which he could safely move. Note, however, that 1...h6 in this example would not do the job, as after the d3 rook moves the h7 square is guarded by the white bishop.
It should be noted that it is often not a good idea to play such pawn moves unless there is a pressing need to do so, as they can represent a loss of time. In many chess openings, however, they are often played for some other purpose, before any back rank threats have emerged (...h6 is often played to bother a white bishop on g5, for example. Also see Fianchetto).
Note that had Capablanca played for the back rank mate more directly with 29...Qb1+ 30.Qf1 Rd1? (30...Qxa2 would be sensible), he would himself have lost to the back rank mate 31.Rc8+ Rd8 32.Rxd8#.