As usual, a sacrifice typically will be needed to create the conditions for the pattern. The queen often is the ideal tool for the purpose because it can make threats of its own so great that the offer to sacrifice it cannot be turned down; or rather it's mate either way. In this case Black has two pawns cluttering the long diagonal, which at first glance look demoralizing. But White wipes them out with Qxf6; this creates a battery on the long diagonal and threatens mate with Qxg7. Black may feel obliged to play g7xQ, the provocation of which was White’s purpose—for now he has Bxf6#.