The present work reports the inhibitory effect of amides derived from gallic acid (gallamides) against severe acute respiratory syndrome coronavirus 2 (SARS‐CoV‐2) main protease (Mpro), along with cytotoxicity evaluation and molecular docking studies. In addition to gallamides, other relevant compounds were also synthesized and evaluated against Mpro, making a total of 25 compounds. Eight compounds presented solubility issues during the inhibitory assay and one showed no inhibitory activity. Compounds 3a, 3b, and 3f showed the highest enzymatic inhibition with IC50 = 0.26 ± 0.19 µM, 0.80 ± 0.38 µM, and 2.87 ± 1.17 µM, respectively. Selenogallamide 6a exhibited IC50 values of 5.42 ± 2.89 µM and a comparison with its nonselenylated congener 3c shows that the insertion of the chalcogen moiety improved the inhibitory capacity of the compound by approximately 10 times. Regarding the cellular toxicity in THP‐1 and Vero cells, compounds 3e and 3g, showed moderate cytotoxicity in Vero cells, while for THP‐1 both were nontoxic, with CC50 > 150 µM. Derivative 3d showed moderate cytotoxicity against both cell lines, whereas 6d was moderatly toxic to THP‐1. Other compounds analyzed do not induce substantial cellular toxicity at the concentrations tested. The molecular docking results for compounds 3a, 3b, and 3f show that hydrogen bonding interactions involving the hydroxyl groups (OH) of the gallate moiety are relevant, as well as the carbonyl group.