The mosquito-borne viruses belonging to the genus Flavivirus such as Dengue virus (DENV) and Zika virus (ZIKV) cause human infections ranging from mild flu-like symptoms to hemorrhagic fevers, hepatitis, and neuropathies. To date, there are vaccines only for few flaviviruses while no effective treatments are available. Pyridobenzothiazole (PBTZ) derivatives are a class of compounds endowed with a promising broad-spectrum anti-flavivirus activity and most of them have been reported as potent inhibitors of the flaviviral NS5 polymerase. However, synthesis of PBTZ analogues entails a high number of purification steps, the use of hazardous reagents and environmentally unsustainable generation of waste. Considering the promising antiviral activity of PBTZ analogues which require further exploration, in this work, we report the development of a new and sustainable three-component reaction (3CR) that can be combined with a basic hydrolysis in a one-pot procedure to obtain the PBTZ scaffold, thus reducing the number of synthetic steps, improving yields and saving time. 3CR was significantly explored in order to demonstrate its wide scope by using different starting materials. In addition, taking advantage of these procedures, we next designed and synthesized a new set of PBTZ analogues that were tested as anti-DENV-2 and anti-ZIKV agents. Compound 22 inhibited DENV-2 NS5 polymerase with an IC50 of 10.4μM and represented the best anti-flavivirus compound of the new series by inhibiting DENV-2- and ZIKV-infected cells with EC50 values of 1.2 and 5.0μM, respectively, that translates into attractive selectivity indexes (SI - 83 and 20, respectively). These results strongly reaffirm PBTZ derivatives as promising anti-flavivirus agents that now can be synthesized through a convenient and sustainable 3CR in order to obtain more potent compounds for further pre-clinical development studies.