This research investigates how antiviral drug resistance develops by examining structural changes in viral proteins. Using protein crystallography, it identified why SARS-CoV-2 mutations prevent Paxlovid binding and discovered two compounds capable of inhibiting resistant viruses. The findings could guide development of more effective antivirals against future drug-resistant viral infections.