01 - Whisk together flour, ground ginger, cinnamon, cloves, nutmeg, allspice, black pepper, baking soda, and salt in a medium bowl. Set aside.
02 - In a large mixing bowl, beat softened butter, light brown sugar, and granulated sugar until light and fluffy, about 2 to 3 minutes.
03 - Add egg to the creamed mixture, then blend in molasses and vanilla extract until fully combined.
04 - Gradually add dry ingredients to wet mixture on low speed until a soft dough forms.
05 - Divide dough into two equal discs, wrap in plastic wrap, and refrigerate for at least 1 hour or up to overnight.
06 - Preheat oven to 350°F. Line baking sheets with parchment paper.
07 - On a lightly floured surface, roll one dough disc to ¼-inch thickness and cut into shapes using cookie cutters.
08 - Place cut cookies 1 inch apart on prepared baking sheets.
09 - Bake for 8 to 10 minutes until edges are firm and centers remain slightly soft.
10 - Allow cookies to cool on baking sheets for 5 minutes before transferring to a wire rack to cool completely. Decorate with royal icing and sprinkles if desired.