if 4. Rxe7, then 5. Bxf6 gxf6, you play Nd5 hitting both the pawn and the rook.
If the rook goes back to e8, you can take the pawn on f6 and fork the king and the rook. The same thing happens with Rd7 and if he plays Rc7 then you just take rook with the same knight.
So after Nd5 black has to play Re6 to defend the pawn but after that you play f4 attacking the knight on e5 so after the black plays Nd7, you attack the rook with f5 and after rook moves out of the way, you have a tactic where you can take the knight on d7 sacrificing the queen and after Qxd7, you can play Nxf6 forking the King and Queen and after Kh8, you play Nxd7 and you are up by a full knight and a pawn.
I hope this helped you understand
(I don't know if I should be posting this here, or in Game Analysis.)
I'm doing one of the Drills for beginners (Puzzles > Practice (Drills) > Drills > Attacking), the Phildor Defense: Pressing a Space Advantage. After playing through it a few times, seeing what moves are recommended and which ones are considered mistakes or blunders, I reset and get to this position:
The computer says that 4. Nxe7+ is the best move, but I can't figure out why since Black's rook on e8 will just take my knight. But I make the move anyway to see what happens. On Black's turn, the king retreats to h8. The rook doesn't take my knight. Whu...? The e8 square is being attacked by my queen on b5 and no one else; e8 is being defended by Black's queen on c8 and knight on f6, and after the rook takes my knight, that rook is now defending e8, as well. If I go 5. Qe8+, I'll just loose my queen. The rook taking my knight seems like an easy grab, but it appears it's not.
So what gives? Why is 4. Nxe7+ the best move, and why doesn't Black respond with 4. ...Rxe7? Am I missing something obvious? Thx.
EDIT: Sorry, I inserted the game wrong. My knight was on f5 and took Black's bishop on e7. Black's king was on g8 and retreated to h8.