# Can I win this Rook and Pawn vs Bishop endgame?

I'm playing white and I've been unable to get the black king out of the corner. Does black have a guaranteed stalemate or is there some way to force him out the corner?

``````[fen "5K1k/6R1/7P/8/8/8/2b5/8 w - - 0 1"]
``````
• An important comment here is that this position is a win if the pawn is on `h4` instead of `h6`. In this endgame you need to chase the king out of the corner before advancing the pawn across the middle line. Sep 8, 2013 at 8:00

Here is just one line illustrating how White could win if Black were to go wrong with the placement of the bishop. After `1...Ba4??` White has a won position, but only by the move `2.Rg2!` which keeps the bishop from returning to its defensively optimal diagonal. And that's the idea behind White's play in the rest of the line given: keep the bishop from coming back to that diagonal (e.g. with `4.Re2`, `5.Rd2`, `10.Re5` denying the bishop's return) until it's too late and the pawn push has already been arranged.
``````[fen "5K1k/6R1/7P/8/8/8/2b5/8 w - - 0 1"]