This work not only provides the binding modes between Stat3 and quercetin, but also contributes to the optimization and design of such anti-cancer inhibitors. Here, STAT3 is linked to cancer.